Home > Net >  How to make the site scroll smoothly with the mouse?
How to make the site scroll smoothly with the mouse?

Time:09-19

I found a smooth scrolling site. All elements move very smoothly. I googled for a long time, but did not even find a similar example. Any ideas how this can be repeated? https://www.sweetpunk.com/en/

CodePudding user response:

The site is likely using a library similar to locomotive-scroll to achieve this effect. See here for a demo: https://locomotivemtl.github.io/locomotive-scroll/

CodePudding user response:

There is a css property that's does something similar

*{
scroll-behaviour:smooth;
}
  • Related