Jump to content
Search Community

scrolltrigger and allocating animation duration to timeline

jermartin77 test
Moderator Tag

Recommended Posts

Hi, 

I have scrollTrigger bound to an animation timeline. 

 

So for examplenormally using timeline,  you would want the first animation to happen for 2 seconds and the second animation to happen for 1 second. Using `scrollTrigger` and `scrub` these 2 animations both happen for 50% of the scrubbing timeline. Is there a way to say I want animation 1 to happen for 75% of the scrubbing timeline and animation 2 to happen for 25% of the timeline scrub? 

 

 

Link to comment
Share on other sites

Hey jermartin77 and welcome to the GreenSock forums.

 

39 minutes ago, jermartin77 said:

examplenormally

That's an interesting word ;) 

 

39 minutes ago, jermartin77 said:

Is there a way to say I want animation 1 to happen for 75% of the scrubbing timeline and animation 2 to happen for 25% of the timeline scrub? 

Sure, just make the duration of the first tween three times as long as the second.

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