Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Mudib

Reverse timeline from label or otherwise, without reversing last tween

Recommended Posts

Hi!

 

I have a timeline animation which I would like to reverse, without reversing the last two tweens.

 

In my jsfiddle example http://jsfiddle.net/identitoe/oLpvfqm4/2/

I would like to keep the last two tweens, the margin-top and the  background-color and start reversing from the point I added the label.

 

I just don' get it to work.

 

Thank you

Link to comment
Share on other sites

Hi and welcome to the GreenSock forums.

 

Thanks for the demo, it certainly helped.

What you want to do is simply not possible by reversing a timeline. There is no way to say jump to a label but ignore the properties that were effected by other tweens. A timeline's main purpose is to keep things perfectly synchronized regardless of direction. 

 

I do not know all the particulars of your project, but a somewhat easy way to approach this is to not reverse the timeline, but add more tweens to the end and play it forward in such a way that it appears to be reversing some of the objects. 

 

make sense?

  • Like 2
Link to comment
Share on other sites

Hi Carl, thanks for your answer.

 

I gonna solve this by splitting the animation in two timelines and then reversing just the first one.

 

Happy Holidays

  • Like 1
Link to comment
Share on other sites

Cool, that is definitely a solid approach.

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