FrankLaRocca
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by FrankLaRocca
-
-
Hi, I'm trying to add smooth scroll to a site that already has a CSS translate on the body content. It needs this to be able to create the illusion of pausing the scroll at certain points to trigger an animation on the logo, which is also based on scroll position (so I don't think the .paused() method will work). Unfortunately, I can't share a public link of the project. Is there a way to just get the calculated scrollY (or scrollTop) value with easing, but not have ScrollSmoother apply any transformations to the content? Thanks!
ScrollSmoother get scroll y value without adding transform to content
in GSAP
Posted
Thanks, that's helpful. I went with the second suggestion and refactored my scroll effects to use the regular ScrollSmoother body transform. I was also able to use pinning to achieve the "pause" effect.