[英]How to Create a smooth Scrolling Effect?
I saw a nice scrolling effect on this website http://www.agileinfoways.com/ and would like to know how to implement. 我在这个网站http://www.agileinfoways.com/上看到了很好的滚动效果,想知道如何实现。 I have never seen it before and I do not know what it is even called.
我以前从未见过它,我甚至不知道它叫什么。 The scrolling is almost mimics a
UIScrollView
on the iOS platform. 滚动几乎模仿iOS平台上的
UIScrollView
。 Any advice on how to create this would be helpful. 关于如何创建这个的任何建议都会有所帮助。 Thanks
谢谢
This site using NiceScroll plugin for JQuery 这个站点使用NiceScroll插件为JQuery
Plugin GitHub page - https://github.com/inuyaksa/jquery.nicescroll 插件GitHub页面 - https://github.com/inuyaksa/jquery.nicescroll
Initialization code from site, what you gave: 来自网站的初始化代码,您给出的内容:
if (jQuery().niceScroll) {
$("html").niceScroll({
scrollspeed: 70,
mousescrollstep: 38,
cursorwidth: 15,
cursorborder: 0,
cursorcolor: '#464646',
cursorborderradius: 0,
autohidemode: false,
horizrailenabled: false
});
}
看看js include,该网站正在使用jquery.nicescroll这里是开发者网站: http ://areaaperta.com/nicescroll/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.