Jump to content
Search Community

Is there a better way to create sequence based animation on scroll than this?.

Rimu

Go to solution Solved by Rimu,

Recommended Posts

Posted (edited)

here is the link to the stackblitz demo starter: https://stackblitz.com/edit/stackblitz-starters-rxxqsauv?file=app%2Fpage.tsx

Hii i am new to gsap im trying to execute a sequence on animation based on scroll, i don't need the animation to scrub to the scroll bar.
i want to execute the next sequence on the next swipeup / scroll up

i tried using the scroll.progress to execute the animation but that doesn't full fill the requirement of executing animation on the next scroll and disabling pin on the last /first animation

 

i was able to do something similar using the gsap Observer and scroll trigger in combination but this is not upto the mark and is a bit lacking when scrolling very fast. 

can anyone please suggest a better way.

Edited by Rimu
Posted

Hi @Rimu welcome to the forum!

 

The Observer is your best bet for this. Check out my post how to step through a timeline using the Observer plugin 

 

 

Hope it helps and happy tweening! 

  • Solution
Posted
2 hours ago, mvaneijgen said:

Hi @Rimu welcome to the forum!

 

The Observer is your best bet for this. Check out my post how to step through a timeline using the Observer plugin 

 

 

Hope it helps and happy tweening! 

Thank you so much for you help i was able to tweek it a little and create what i needed here a link to the codepen

See the Pen gbaaogQ?editors=0011 by RimuruSama (@RimuruSama) on CodePen.

scroll from bottom and resume animation

  • Like 1

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