Jump to content
GreenSock

engineersatendra

jump to the end of a TimelineMax when running in reverse.

Recommended Posts

Is there a shorthand to jump to the end of a TimelineMax (Actually jump to starting point because timeline is running  in reverse mode) instance (and fire all of its onComplete listeners) when TimelineMax running in reverse mode ???

Link to comment
Share on other sites

Hello engineersatendra, and Welcome to the GreenSock Forum!

 

You can try to use the seek() method to go to a specific point in the timeline

  • [override] Jumps to a specific time (or label) without affecting whether or not the instance is paused or reversed.

seek(): http://greensock.com/docs/#/HTML5/GSAP/TimelineMax/seek/

 

____________________________________________________________________

 

There is also the progress() method:

  • [override] Gets or sets the timeline's progress which is a value between 0 and 1 indicating the position of the virtual playhead (excluding repeats) where 0 is at the beginning, 0.5 is halfway complete, and 1 is complete.

progress(): http://greensock.com/docs/#/HTML5/GSAP/TimelineMax/progress/

 

____________________________________________________________________


If your still having issues then please create a limited codepen demo so we see your code in context:

 

 

Resources:

GSAP DOCS:  http://greensock.com/docs/#/HTML5/GSAP/

 

Thanks :)

  • Like 2
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.
×