You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using motion one in a Vue project where I want to do the following:
A gsap timeline drives the animation of a value
I pass the value to a component as a prop
The value should drive a motion one animation
When I'm trying to call the animate() function in a Vue watcher with requestAnimationFrame it does not work (Example 1 in Codesandbox). If instead use a requestAnimationFrame loop it does (Example 2 in Codesandbox). Please comment in/out the code accordingly.
2. IMPORTANT: Provide a CodeSandbox reproduction of the bug
1. Describe the bug
I'm using motion one in a Vue project where I want to do the following:
gsaptimeline drives the animation of a valueWhen I'm trying to call the
animate()function in a Vue watcher withrequestAnimationFrameit does not work (Example 1 in Codesandbox). If instead use arequestAnimationFrameloop it does (Example 2 in Codesandbox). Please comment in/out the code accordingly.2. IMPORTANT: Provide a CodeSandbox reproduction of the bug
https://codesandbox.io/s/confident-mendeleev-pvgqmc?file=/src/components/Animation.vue
3. Steps to reproduce
Steps to reproduce the behavior:
4. Expected behavior
I'm not sure if its a limitation of the library or if I'm doing something wrong. My expectation would be that I can drive the animation with the watcher. This for example works as expected when using
gsap: https://codesandbox.io/s/charming-easley-4gw4gp?file=/src/components/Animation.vue