Jump to content
Search Community

Restart a master Timeline

Lemenski test
Moderator Tag

Recommended Posts

Hi everyone,

i'm a bit worried about things i did for an animation.

I chain multiple timeline on a master one like this :

var mainTL = new TimelineMax({repeat:-1});
mainTL.add(tl1, "test")
.add(tl2, "test-=1")
.add(tl3, "test-=2");

So it works perfectly.

For intel my tl2 and tl3 are on repeat -1 but not my tl1

I want to stop everything when my tl1 is ending so i include a onComplete function in my tl1

In this function i create an event who, when triggered, is able to play the mainTL animation from the begining.

And i have no clue how to do it ^^I think i'm a bit confused about all those timelines.

Is somebody had a clue for me please ?

Thanks a lot !

 

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.
×
×
  • Create New...