This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
[Bug] Animation does not work very well whe driven by watch
in a vue application
#220
Labels
Bug
Bug report
1. Describe the bug
I'm using motion one in a Vue project where I want to do the following:
gsap
timeline drives the animation of a valueWhen I'm trying to call the
animate()
function in a Vue watcher withrequestAnimationFrame
it does not work (Example 1 in Codesandbox). If instead use arequestAnimationFrame
loop 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.vueThe text was updated successfully, but these errors were encountered: