Jump to content
Search Community

ScrollSmoother scroll speed

futuris test
Moderator Tag

Recommended Posts

I know that scrollsmoother is based on browser native scroll. But is there any chance to move more pixels on one scroll than default (like other plugins for smooth scrolling do)?

I'm asking because the websites with implemented scrollsmoother I've made (i.e. https://greenvit.pl, https://kolstal-domy.pl) got the feedback like: "feels very heavy when scrolled". Manipulating with smooth value didn't help. Those sites with other smooth scroll plugins (i.e. https://84.pl) didn't get that kind of feedback.

I don't know exactly why, but indeed - if the smooth scroll is implemented - "faster" scrolling (which means more scrolled pixels at one time) is just more enjoyable experience. If no smooth scroll is implemented - than native scroll speed is just fine.

So, any ideas?

Link to comment
Share on other sites

Hi @futuris and welcome to the GreenSock forums!

 

First, thanks for being a Club GreenSock member and supporting GSAP! 🥳

 

I think is better for @GreenSock to answer this as I'm not aware of anything in the API for that purpose, but maybe there is some secret ingredient somewhere that could do that.

 

Please stand by.

 

Happy Tweening!

Link to comment
Share on other sites

It isn't currently possible, but I suppose we could add a speed property that's affect the body.height value and scale things accordingly. I've spent some time adding that experimental feature into this beta file which you can test on CodePen/CodeSandbox: 

https://assets.codepen.io/16327/ScrollSmoother.min.js

 

So you just add a speed value like: 

ScrollSmoother.create({
  smooth: 2,
  speed: 3 // 3x the normal scroll speed
});

Does that work well for you? I can't guarantee this feature will be included, but it seems like it could be useful and we welcome input. 

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

  • 1 month later...

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...