nzetala
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by nzetala
-
-
Hi everyone,
I'm learning to use GSAP with React and I'm having a problem and I'd like to know how to solve it:
The code sample below is a Scrollanimation animation with a pinned element.
The .rightblock component of the animation is supposed to stay pinned when scrolling and this works fine when scrolling slowly but when scrolling fast, the component leaves its position and covers the other components for a few milliseconds and then jumps back to its position (which is very unpleasant to watch).
Please note that this phenomenon is worse when the memory size of the .photo and the .frame is large.
Strange behaviour of a pin element using Scrolltriggers
in GSAP
Posted
Thx for the answer.
Setting
ScrollTrigger.normalizeScroll(true)
Solved the problem.