Jump to content
Search Community

Reverse timeline but skip delays of it's tweens

aras.irvash
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

aras.irvash
Posted

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

Posted

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
aras.irvash
Posted

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

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