beno Posted April 22, 2010 Share Posted April 22, 2010 Hi; I imagine I do this with TimelineMax and restart(), but I have not been able to google up an example. Could you provide one? TIA, beno Link to comment Share on other sites More sharing options...
GreenSock Posted April 22, 2010 Share Posted April 22, 2010 var timeline:TimelineMax = new TimelineMax({repeat:-1}); timeline.append(...); ...add stuff here... That's it. Setting the repeat to -1 means to repeat infinitely. If you wanted it to repeat twice, you'd set repeat to 2. Of course if you'd rather, you could use an onComplete to call a function that calls restart() on your timeline if it's a TimelineLite (only TimelineMax offers the "repeat" special property), but it's easier to just use TimelineMax's repeat. Link to comment Share on other sites More sharing options...
beno Posted April 22, 2010 Author Share Posted April 22, 2010 Thanks! beno 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