v. 3.7.3 2017-06-18
Nicescroll as a Greasemonkey plugin: http://userscripts.org/scripts/show/119910 (freezed)
Nicescroll is a jquery plugin, for nice scrollbars with a very similar ios/mobile style.
So you have customizable and scrollable divs with momentum for iPad and you have consistent scrollable areas for all desktop and mobile platforms.
Sexy zoom feature, you can "zoom-in" the content of any nicescroll'ed div. Nice to use and nice to see, all the content of the div in fullscreen mode. It works on desktop (double click on div) either in mobile/touch devices using pinch gesture.
On modern browsers hardware accelerated scrolling has implemented. Using animationFrame for a smoothest and cpu-saving scrolling. (when browser supports)
"Use strict" tested script for maximum code quality. Bower and AMD ready.
Warning for IE6/7 users (why do you uses yet? Please updgrade to a more stable and modern browser), support for your browser has deprecated.
It's a plugin for the jquery framework, you need to include jquery in your scripts. it works with jQuery 1.x / 2.x / 3.x branch (slim version don't works)
When you use zoom feature, copy image "zoomico.png" in the same folder of jquery.nicescroll.js.
Initialize nicescroll ALWAYS in (document) ready statement.
// 1. Simple mode, it styles document scrollbar:;// 2. Instance with object returned:var nice = false;;// 3. Style a DIV and chage cursor color:;// 4. DIV with "wrapper", formed by two divs, the first is the vieport, the latter is the content:;// 5. Get nicescroll object:var nice = ;// 6. Hide scrollbars:;// 7. Check for scrollbars resize (when content or position have changed):;// 8. Scrolling to a position:; // Scroll X Axis; // Scroll Y Axis
When you call "niceScroll" you can pass some parameters to custom visual aspects: