Jump to content
Search Community

Adding a pause to a timeline

pragdave test
Moderator Tag

Recommended Posts

First of all, let me just say that after just a few days of playing, I’m really impressed at how well you guys have crafted this library. Very nicely thought out.

So, I’d like to be able to create a timeline which contains animations I’ll be running later. That timeline needs to pause at times and then be resumed.

I create a timeline with {paused: true}, and then populate it. However, if I try to add a pause to that timeline (using tl.pause()) it doesn’t become part of the timeline itself. Instead it commands the timeline itself to pause (which it already is). The Codepen shows a simple case of this, creating a paused timeline, adding an animation, a pause, and an animation. When I kick the timeline off, it runs to completion.

Is there a trick that lets me add the pause to the actual timeline sequence?

Cheers

Dave

See the Pen JjdKYwJ by pragdave (@pragdave) on CodePen

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...