This repository was archived by the owner on Nov 12, 2024. It is now read-only.
Replies: 1 comment 2 replies
-
The |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm just getting started with MotionOne, and ran into a problem with timeline duration: docs say it gets calculated, but I don't seem to get it working.
For example, I added 2 keyframess to timeline, repeating in 3 times, expecting duration to be 12:
const tl = timeline([ ['#img', {rotate: 180}, {duration: 1 }], ['#img', {rotate: 0}, {duration: 3 }], ], {repeat: 3}); console.log('duration:', tl.duration); // this is always 4, regradless of repeat value
Adding repeats to individual KFs had no effect either (though I'm not sure if that's supported) . What am I doing wrong here?
Beta Was this translation helpful? Give feedback.
All reactions