Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Yaniv Nagar

Is is possible to have a different reverse timeline?

Recommended Posts

Hello All,

 

if I have a timeline, that has 4 tweens for different elements, can I state that reversing it will have a different tween properties for one of the tweens?

 

For example: I have 3 divs alternating x ([700px,-700px]) with cycle. I want to make is so that on the reverse, they will alternate using y (y:[700px,-700px]).

 

Is it possible to define a different from/to properties only for the reverse method?

 

Thanks!

Link to comment
Share on other sites

No, that isn't something that reverse() allows. My suggestion would be to create a new timeline each time you play() from the beginning or reverse() from the end.

  • Like 2
Link to comment
Share on other sites

Hi,

 

Only a sporting challenge.
But, what's my mistake with the timeline 'go'  ?

 

See the Pen GGaaqK by mikeK (@mikeK) on CodePen

 

Kind regards

Mikel

 

 

  • Like 1
Link to comment
Share on other sites

A tween can't exist in two places at the same time - you put 2 of the tweens in two different timelines. So they got removed from the first one and put into the second one. A tween can only have one parent. See what I mean?

  • Like 2
  • Thanks 1
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.
×