Jump to content
Search Community

Infintely Looping Tweens

beno test
Moderator Tag

Recommended Posts

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

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