Skip to content

如何使用js动态控制value值 #154

@z517584922

Description

@z517584922

我想在gsap timeline回调中动态修改touch的value,使其可以在timeline进行play的时候保持两者的同步,类似如下代码,我试了touch.value或者touch.setValue都不可以,有什么办法可以动态控制它的值呢?
this.timeline.eventCallback("onUpdate", () => { this.touch.value = -5000 });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions