Jump to content
Search Community

How to make my smooth scroll a bit faster

alechance test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

Hi everyone,

 

I'm still figuring out how smooth scrooll works. I'm trying to achieve a smoother and faster scroll but I don't understand how I could change my animation to do so. Here is an example of the right easing / timing https://studiovoila.com/

 

ScrollSmoother.create({
wrapper: '#main-wrapper',
content: '#main-content',
ease: 'expo',
smooth: 1.6, // seconds it takes to "catch up" to native scroll position
effects: true // look for data-speed and data-lag attributes on elements and animate accordingly
});

 

Thank you very much for your help. 

Link to comment
Share on other sites

  • Solution

Hi,

 

I'm not sure I completely understand what you mean.

 

You want faster scrolling or faster animations as you scroll?

 

For faster animations you can reduce the amount of pixels your ScrollTrigger instances last.

 

For faster scroll using ScrollSmoother you can use the speed configuration option:

speed

Number - a multiplier for overall scroll speed, so 2 would make it scroll twice the normal speed, and 0.5 would make it scroll at half-speed. added in version 3.11.4.

 

ScrollSmoother.create({
  smooth: 1.6,
  effects: true,
  speed: 1.5,// 50% faster than normal
});

Hopefully this helps. If you keep having issues, please create a minimal demo so we can take a better look and be as explicit as you can about what you're trying to do.

Happy Tweening!

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