Evans Hunt
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Evans Hunt
-
-
Hello,
I am creating a multi-panel scrolling widget using the GSAP ScrollTrigger and ScrollTo plugins. When scrolling past the 2nd panel, I use ScrollTrigger to pin an SVG, and ScrollTo to override the snapping behaviour. I'm encountering a slight jump on the initial pinning of my SVG and am not sure what the cause is or how to alternatively smooth this out. My Codepen example isn't too bad, but still noticeable, and if i were to add more content the jump/glitch becomes more prominent.
The Codepen example is identical to my project's widget markup and styling. If there are any questions or context needed, I can provide it in this thread.
Thanks
See the Pen rNpyexw by hichamtahaeh (@hichamtahaeh) on CodePen
ScrollTrigger using pin with ScrollTo to handle snap behaviour - Pinning issue
in GSAP
Posted
Hello @OSUblake, sorry for the late reply!
The above code definitely helped out my widget a lot, but i'm just wondering what the intoAnim object is referencing on the onEnter callback?
Thanks.