Klygor
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Klygor
-
-
Hi people!
I'm currently doing a project where I have one big timeline controlled by ScrollTrigger. I want that when I scroll a little up or down the scroll go to the next label that i have in the timeline. But I have to scroll a lot when I use
snap: "labels"
or it goes back. Is there any way to do what I want? I have seen codepens where you can snap to the next section but I want only to the next label.Thank you!
Snap property in ScrollTrigger
in GSAP
Posted
Wow! I thougth there was an easiest way to do it hahaha. Is there a way to calculate the percentage of where are the labels with gsap?, because I know where they are but not its percentage. I've already created the ScrollTrigger with end and start, all animations added and all labels too.
Thank you !