Jump to content
GreenSock

NickWoodward

Return to the beginning of a timeline and staying there?

Recommended Posts

Is there a better way of going to the beginning of a (currently playing) timeline and remaining there than this:

tl.pause();

tl.seek(0);

?

Not that there needs to be, I was just wondering as I was looking through the docs :)

Link to comment
Share on other sites

There are many ways :)

tl.pause(0); // <- easiest

tl.progress(0).pause();
tl.time(0).pause();
tl.totalProgress(0).pause();
tl.totalTime(0).pause();
tl.seek(0).pause();

 

  • Like 1
Link to comment
Share on other sites

tl.pause(0) - knew there would be one that would make me look like I hadn't read the docs properly :)

thanks!



 

  • Haha 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.
×