Share Posted January 7, 2022 hello everyone i tried to make smooth scroll with https://greensock.com/docs/v3/Plugins/ScrollTrigger/static.scrollerProxy() but nothing works. anyone can help me? same as in ssk.com See the Pen qBPYZdw by feyberho (@feyberho) on CodePen Link to comment Share on other sites More sharing options...
Share Posted January 7, 2022 Hello @feyberho Looks like you are trying to use smooth-scrollbar.js That is a third-party plugin, that you will first have to load into your page before anything can work with that. You will see the scripts that get loaded, when you click the cog-wheel in the JS section of that respective demo in the scrollerProxy-docs. You should also make sure to keep the structure/order of the JS provided in that demo or else it won't work together with ScrollTrigger. Have you seen that there also is a ScrollTrigger-native helper-function? It comes a bit closer to the site you referenced, I think. See the Pen gOgWELo by GreenSock (@GreenSock) on CodePen I noticed you are setting scroll-behavior: smooth on your body - as a little heads-up: this tends to break a thing or another when ScrollTrigger is being used; there are a lot of threads about that in the forums already. Just wanted to let you know. 3 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