Louienator Posted July 9, 2024 Posted July 9, 2024 Hello GSAP friends. I'm trying to achieve this type of scrollTrigger animation that the first trigger is different from the rest. Here's my fiddle: https://jsfiddle.net/9y8haugd/249/
Louienator Posted July 9, 2024 Author Posted July 9, 2024 I think i got it. but it seems that the scroll trigger on the other section didn't work. And also, why does my square when expand is like trapezoid? Here's my fiddle: https://jsfiddle.net/58jo76rs/48/
mvaneijgen Posted July 9, 2024 Posted July 9, 2024 Console.log() is your friend! Instead of thinking you've setup everything 100% perfect, log the values you're using and check if they are correct with what you're thinking they are. You've used regularSection as your trigger which will only use the element as the trigger and as soon as it would trigger it would show all the images below it. In your case you use a forEach() look and have defined 'zap' all the current item, so that is what you want to use for the trigger. https://jsfiddle.net/obf4cam5/ 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now