Amini Posted December 5, 2022 Posted December 5, 2022 Hi, I'm trying to make a scroll snap using gsap. I've already proxied the smooth-scrollbar to the scrollTrigger but this is not solving my issue. So the scrollSnap is not working properly (working but having issues) and since you know the smooth-scrollbar scrolls the page using transform and not with overflow. (Uncomment the part and you'll see it explodes) Thanks in advance. See the Pen yLEGNYN?editors=0010 by amini-py (@amini-py) on CodePen.
mvaneijgen Posted December 5, 2022 Posted December 5, 2022 smooth-scrollbar is a third party library and is not something this forum can give support for. GSAP has its own smooth scroll plugin, build for ScrollTrigger https://greensock.com/scrollsmoother/ this build for GSAP, so if you have the choice I would choose that one over smooth-scrollbar, but you are free to use what ever you want of course!
Solution Rodrigo Posted December 5, 2022 Solution Posted December 5, 2022 Hi, I recommend you to take a deeper look at the Scroller Proxy configuration docs and the specific example for Smooth Scroll bar that you can find there as well: https://greensock.com/docs/v3/Plugins/ScrollTrigger/static.scrollerProxy() Happy Tweening! 2
Amini Posted December 7, 2022 Author Posted December 7, 2022 Thanks Rodrigo! This actually solved my problem 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