Lemenski Posted December 17, 2019 Share Posted December 17, 2019 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 More sharing options...
Lemenski Posted December 17, 2019 Author Share Posted December 17, 2019 Ho my bad, i thought the things a try earlier didn't work but a simple .restart on ma mainTL seems to do the job perfectly ^^ Sorry again for the inconvenience 3 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now