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
begin() and complete() with loop: true on timelines are only called once #854
Comments
It will be fixed in v4! |
try this workaround: let timeline = anime.timeline({
//...
loop: true,
loopComplete: () => {
timeline.restart();
}
//...
}); |
If you want to have a callback that runs only once at the end of the entire timeline (not on each loop), you can use the
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
begin()
andcomplete()
callbacks of timeline parts only get called once in theloop: true;
mode, which is not correct.The text was updated successfully, but these errors were encountered: