Jump to content
Search Community

i need help to make heavy smoothscroll in my page

feyberho test
Moderator Tag

Recommended Posts

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.

  • Like 3
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.
×
×
  • Create New...