Jump to content

Nico D

put a pause in a timeline?

Recommended Posts



is it possible to put a pause in a timeline (like a stop() in a Flash-timeline) ?

When I use tl.pause() it is not doing that.

Is there a built-in way or workaround to accomplish this?




Link to comment
Share on other sites

Sure, you can use the call() method of TimelineLite to trigger the pause() method of your timeline:




var tl = new TimelineLite();

tl.to("#box1", 1, {rotation:360})
  //function, params, scope
  .call(tl.pause, [], tl)
  .to("#box1", 1, {left:200});


See the Pen cf4be20ad58580860e131225a570726c by GreenSock (@GreenSock) 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.