Jump to content


Scroll Snap with smooth-scrollbar js

Go to solution Solved by Rodrigo,

Recommended Posts

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

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

Thanks Rodrigo! This actually solved my problem


  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.