-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[FEATURE] Add pause to timeline #817
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
Comments
I retract my original comment 😅. There's a way to do everything I've mentioned, including pausing the timeline. timeline.play();
timeline.pause();
timeline.restart();
timeline.seek(timeStamp); It's all seen on this page: https://animejs.com/documentation/#TLcontrols. |
@ShKlinkenberg I tried implementing what you are asking based on these two facts:
let myTimeline;
myTimeline = anime.timeline({
complete: function(_animation) {
myTimeline.pause()
}
}); However, after testing this doesn't seem to work as expected, e.g. pause after every animation within the timeline. Not sure what I may be missing atm. |
Sorry for the wait, v4 doesn't have a createTimeline()
.add('.square.red', { y: -100 })
.call(self => self.pause()) // pause the timeline
.add('.square.green', { y: -100 }) Check out the new documentation and the migration guide from v3. I'm closing this for now, but feel free to re-open if this is still an issue for you in v4 by following the contributing guidelines. Thanks! |
I made a little demo here https://codepen.io/juliangarnier/pen/RNNwvNj |
Actually reopening this, |
I'm trying to create an animation timeline that pauses after each animation. So I can create an animation progress button to go to the next animation in the timeline. This is very useful for teaching purposes.
I would like to see the ability to add a pause in the timeline
tl.addPause();
, just like GSAP has implemented this.Other ways to seek the timeline and have the animation pause at specified times are very cumbersome.
This would be a great addition. Or maybe this is already possible and I'm just not able to find it.
Thanks for the awesome library. I especially appreciate the MIT license as opposed to GSAP with their paid plugins.
The text was updated successfully, but these errors were encountered: