Jump to content


How do I reverse a timeLine?

Moderator Tag

Recommended Posts

I have two time lines which I would like to play simultaneously.

First one plays forward and second one plays in reverse.

I can not figure out how to reverse my time line. They both are playing forward.

Here is the code I try to implement to reverse the timeline:

var movingLights2_timeLine:TimelineMax = new TimelineMax({currentProgress:1 repeat:-1, yoyo:true, timeScale: .5, reverse:true});

Link to comment
Share on other sites

try setting the currentProgress = 1 AFTER the timeline is built and populated with tweens.

FYI, currentProgress isn't a special property that can be set in the constructor.

Link to comment
Share on other sites

Thanks, it worked.

The proper code as you said to put it after the tweens are build:


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.