Jump to content
Search Community

Reverse timeline but skip delays of it's tweens

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

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 comment
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 comment
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 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.
×
×
  • Create New...