问题描述
我最近访问过该网站 http://www.ascensionlatorre.com/home ,我喜欢鼠标的方式滚轮可以工作-缓动非常顺畅.
I recently came across this website http://www.ascensionlatorre.com/home, and I love the way the mouse wheel scrolling works - the easing is very smooth.
我一直在搜索Google,但找不到类似的内容.
I have been searching Google but I can't find anything similar.
有人对如何用jQuery复制这种效果有任何建议吗?
Does anybody have any suggestions on how to replicate this effect with jQuery?
推荐答案
我最近也遇到了这个问题,但是我并没有找到很多支持,所以我很快就忘记了这个问题.几个月后,我看到了一个更好的平滑滚动示例,因此我深入研究了他们正在使用的JavaScript文件,发现他们正在使用一个名为NiceScroll的jQuery文件.
I recently came across this issue as well and I wasn't finding a lot of support for it, so I quickly forgot about the problem. A few months later I saw a better example of the smooth scrolling so I went in and dug around the JavaScript files they were using and I found that they were using a jQuery file called NiceScroll.
我相信这就是我们俩一直在寻找的-用于div,iframe或类似iOS滚动的简单平滑滚动.
I believe this is what we've both been looking for- simple smooth scrolling for divs, iframes or whatever, much like the iOS scrolling.
http://areaaperta.com/nicescroll/
这篇关于鼠标滚轮可实现平滑的滚动缓和效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!