Amini Posted December 5, 2022 Share 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 Link to comment Share on other sites More sharing options...
mvaneijgen Posted December 5, 2022 Share 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! Link to comment Share on other sites More sharing options...
Solution Rodrigo Posted December 5, 2022 Solution Share 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 Link to comment Share on other sites More sharing options...
Amini Posted December 7, 2022 Author Share Posted December 7, 2022 Thanks Rodrigo! This actually solved my problem 1 Link to comment Share on other sites More sharing options...
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