Jump to content
Search Community

Animation sequence without scrub

Marco Rodrigues test
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

Hi.
Been having some trouble creating an animation sequence without scrub.
My idea of the animation on the codepen above, is that the on-scroll animation should fade-in/out headlines, zoom-in (into screen) the last arrow, and then sequently in the future show more headlines. Problem is about timing and when one or the other should fade-out for the next one to fade-in.


This would be the ideal sequece:

  1. First headline fade-out once the 3rd arrow reaches center of screen;
  2. Second headline fade-in right after;
  3. Second headline fade-out when about to reach the last arrow;
  4. Fade-in third headline once the last arrow is already zooming;


With scrub I managed to do it using position parameter, but I want the animation to be triggered at once without scrub.
 

See the Pen VwdXdYK by marcorodriguesdev (@marcorodriguesdev) on CodePen

Link to comment
Share on other sites

15 hours ago, Cassie said:

Heya! So you're wanting to combine scrubbed and non-scrubbed animations. This is a common hurdle.

This thread and answer should get you on the right track

 

Yes, managed to solve it using the approach shown on that thread.
Thanks a lot!
My bad for creating a new thread about this, was using the wrong keywords to search in the forum, should've looked for "combining scrubbed and non-scrubbed animations/scrolltrigger"

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