Jump to content
Search Community

Stagger animation along with ScrollTrigger

teins

Go to solution Solved by Rodrigo,

Recommended Posts

Posted

thank @Rodrigo, the animation is great, but I want to control animation when scroll, which means it will open slowly when scrolling down

Posted

Hi

I'm on my phone now, but maybe just change the easing function to none:

esse: "none"

 

Give that a try and let us know how it works 

 

Happy Tweening!

  • Like 1
Posted

nah, not the animation I want to do
thanks btw

  • 4 weeks later...
Posted
On 10/13/2024 at 2:36 PM, teins said:

thank @Rodrigo, the animation is great, but I want to control animation when scroll, which means it will open slowly when scrolling down

cannot understand your question but i think so if you remove the "scrub" maybe it will solve your case and change the top and end positions. If its solved kindly explain how you did it?

Posted

Hi @areebabbas83,

 

The only difference between the two demos is that one doesn't use ScrollTrigger and the other does.

 

Without ScrollTrigger:

https://stackblitz.com/edit/vitejs-vite-kn5xpa?file=src/index.css,src/App.jsx

 

With ScrollTrigger:

https://stackblitz.com/edit/vitejs-vite-kn5xpa?file=src/index.css,src/App.jsx

 

The effect is achieved using Staggers:

https://gsap.com/resources/getting-started/Staggers

 

Hopefully this clear things up

Happy Tweening!

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