Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
venn

Changing the start time of nested timelines so they overlap in a master timeline?

Recommended Posts

Hi team,

 

If I have a master timeline that contains 3 smaller timelines.

 

Let's say if I want to change the start time of getPinTimeline so that it overlaps on the timeline of getRotateTimeline. 

How can I do that?

var mtl = new TimelineMax();

mtl.add(getSpinTimeline())
   .add(getRotateTimeline())
   .add(getPinTimeline());

Cheers,

Venn.

Link to comment
Share on other sites

mtl.add(getSpinTimeline())
   .add(getRotateTimeline(0))
   .add(getPinTimeline(0));

I did a quick test by putting 0 in them so they all run concurrently but in vain?

Link to comment
Share on other sites

Thanks @Diaco

 

Please call me dumb.

 

My syntax is wrong.

 

//add another timeline at "myLabel"

tl.add(otherTimeline, "myLabel");

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