Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
aras.irvash

Reverse timeline but skip delays of it's tweens

Recommended Posts

Hi,

I created a timeline with lots of tweens, these tweens have delays on them and what I need is to skip all the delays when I reverse this timeline, long story short on reverse all the tweens must start immediately.

 

Thanks in advance

Link to post
Share on other sites

Hi aras.irvash,

 

 

Do you have a CodePen example of what you are trying to achieve? Here's a sticky post Carl has written on how to create a CodePen demo.

 

It helps us help you.

 

From the top of my head, you will probably be better off playing a separate timeline to reverse your animation. I can't really think of a way to remove the delays after you have created the timeline itself.

  • Like 4
Link to post
Share on other sites

Dipscom is correct, a demo would really help.

 

This seems very similar to a question that came up the other day: http://greensock.com/forums/topic/14577-having-a-bit-of-trouble-getting-my-head-around-these-conflicting-animations/?hl=staggered

 

Technically speaking you could use timeline.getChildren() to get an Array of all the animations in a timeline. You could then loop through them and try to offset their startTime() but that isn't very straight-forward and there are some potential side effects that could make the visual result undesirable. 

  • Like 2
Link to post
Share on other sites

Dipscom is correct, a demo would really help.

 

This seems very similar to a question that came up the other day: http://greensock.com/forums/topic/14577-having-a-bit-of-trouble-getting-my-head-around-these-conflicting-animations/?hl=staggered

 

Technically speaking you could use timeline.getChildren() to get an Array of all the animations in a timeline. You could then loop through them and try to offset their startTime() but that isn't very straight-forward and there are some potential side effects that could make the visual result undesirable. 

I tried offsetting the startTime() but its a lot of work and in my case not possible because there are some delays that I have to keep after all, the best way would be to use another timeline , I'm using timeScale(3) on reverse for now I'll make another timeline later, my animations.js is beginning to look like a huge jungle on fire :(

 

Sorry I didn't have time to prepare a codepen and thank you for taking the time to read all this.

greensock rocks :D

  • Like 2
Link to post
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.

×