简体   繁体   中英

Smooth scrolling using mouse scroll

I wonder what's the plugin/css trick behind this page to achieve the smooth scrolling - http://templates.framework-y.com/dark/ . As you can see when you scroll, the page continues to scroll after you stop scrolling with 3rd mouse button.

That kind of script is call : "Smooth Scroll". You can find examples in this stackoverflow's question : Can I change the scroll speed using css or jQuery?

Here is an example and the github of the script :

http://simov.github.io/simplr-smoothscroll/examples/example-02.html https://github.com/simov/simplr-smoothscroll

我们可以在没有鼠标的情况下在 css 中平滑滚动,但不能仅使用 css 使鼠标平滑滚动,抱歉

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM