Jump to content


.add() to a timeline at a particular label but coded out of sequence?

Recommended Posts

Hi all, I am trying to .add() a couple of timelines to a master timeline using labels, but coded out of sequence.


Here is a pen of the timeline working correctly when coded in sequence.


However, when the nested timelines are added out of sequence (assume they will be added in a separate js file), it does not function as expected.


Maybe my understanding of how labels work is incorrect?

Any help would be appreciated. 👍


Not working

See the Pen mdWoaRM by brioenzswozlle (@brioenzswozlle) on CodePen



See the Pen XWMGyOG by brioenzswozlle (@brioenzswozlle) on CodePen

Link to comment
Share on other sites

Hi void!


You can add animations wherever you want, and at any time, but if a label doesn't exists, it's going to get added to the end of the timeline. Your timeline is empty, so the outro label is at the same position as the intro label. 


You can verify the label times.




  • Like 2
Link to comment
Share on other sites

Thank you, shiftChildren is exactly what I was looking for.

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