Jump to content


Timeline within Master Timeline Start 1 second earlier

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Basically, I have a few timelines within my Master timeline, and I want one of them to start 1 second earlier to it is animating closer to the time of the one before it.


  masterTL.add( createLogo(), "logoLabel" )
          .add( logoOut(), "outLabel")
          .add( speedometerIn(),"speedLabel")
          .add( mLogoIn(), "mLogoLabel")
          .add( clockIn(), "clockLabel")
          .add( musicIn(), "musicLabel")
          .add( volumeIn(), "volumeLabel")
          .add( drivingModesIn(), "drivingModesLabel")
          .add( dateTempIn(), "dateTempLabel")
          .add( fuelIn(), "fuelLabel")
          .add( carGearIn(), "carGearLabel")
          .add( driveGearIn(), "driveGearLabel");



Here is the code adding all of the timelines to the master timeline, I want the "volumeIn" timeline to start 1 second earlier. I've tried adding "-=1" in every spot and it doesn't make a difference anywhere.

Link to comment
Share on other sites

Where you are using add() to inject the tween/timeline and set a label ... try creating labels with their own add() and using the position parameter to offset which ever tween/timeline you like. Here is a code pen illustrating that,


See the Pen GwYYVv by sgorneau (@sgorneau) on CodePen


Hope this helps!




  • Like 5
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.