What's Nicescroll?

Nicescroll (as nice scroll for browsers) is a jquery (since 1.5) plugin, for nice scrollbars with a very similar ios/mobile style.
It supports DIVs, IFrames and document page (body) scrollbars.
Compatible with Firefox 4+, Chrome 5+, Safari 4+ (win/mac), Opera 10+, IE 6+. (all A-grade browsers)
Compatible with iOS devices as iPad. So you have scrollable divs for iPad 4.x.

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.

Only vertical scrollbars supported in this version.

Warning for IE6 users (why do you uses IE6 yet? Please updgrade to a more stable and modern browser), some feature can't work for limitation of the browser. Document (body) scrollbars can't appears, old (native browser) one is used. Some issues with IFrame scrolling.

What's the news?

New version 2.9.0 released, read changelog for a complete list.

Features

How to use

Recall ALWAYS in (document) ready statement. (using jquery ready function)

DEPENDENCIES

It's a plugin for the jquery framework, you need to include jquery in your scripts.
From 1.5.x version and on. (you can try with 1.4.x also)

INSTALLATION

Put loading script tag after jquery script tag and loading the zoom image in the same folder of the script:

<script src="jquery.nicescroll.js"></script>

EXAMPLES

1. Simple mode, it styles document scrollbar (html element prefered):

$(document).ready(
function() {
$("html").niceScroll();
}
);

2. Instance with object returned:

var nice = false;
$(document).ready(
function() {
nice = $("html").niceScroll();
}
);

3. Style a DIV and change cursor color:

$(document).ready(
function() {
$("#thisdiv").niceScroll({cursorcolor:"#00F"});
}
);

4. DIV with "wrapper", formed by two divs, the first is the vieport, the latter is the content:

$(document).ready(
function() {
$("#viewportdiv").niceScroll("#wrapperdiv",{cursorcolor:"#00F"});
}
);

5. Get nicescroll object:

var nice = $("#mydiv").getNiceScroll();

6. Hide scrollbars:

$("#mydiv").getNiceScroll().hide();
For more features see live examples page.

Configuration parameters

When you call "niceScroll" you can pass some parameters to custom visual aspects:

License

Copyright 2011-12*InuYaksa
Licensed under the MIT License, http://www.opensource.org/licenses/mit-license.php