Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
z517584922 opened this issue Dec 3, 2024 · 1 comment
Open

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

z517584922 opened this issue Dec 3, 2024 · 1 comment

Comments

@z517584922
Copy link

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

@longmore
Copy link

longmore commented Dec 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants