This time I will share jQuery Plugin and tutorial about Cross-platform OSX-like Scrollbar jQuery Plugin – Scrollert.js, hope it will help you in programming stack.
Scrollert.js is a cross-platform, easy-to-customize jQuery custom scrollbar plugin which adds OS X-like horizontal/vertical scrollbars to a specified scrollable container.
How to use it:
1. Load the minified version of jQuery Scrollert.js plugin’s CSS in the document’s head section.
1 |
< link rel = "stylesheet" href = "dist/scrollert.min.css" > |
2. Add the CSS class ‘scrollert’ to the scrollable area and wrap your main content into the ‘scrollert-content’ container.
1 |
< div class = "scrollert" > |
2 |
< div class = "scrollert-content" > |
3. Load jQuery library and the jQuery Scrollert.js plugin’s script at the bottom of the html page.
2 |
< script src = "dist/scrollert.min.js" ></ script > |
4. Call the function on the top element and done.
1 |
$( '.scrollert' ).scrollert(); |
5. Default configuration options for the scrollbar plugin.
1 |
$( '.scrollert' ).scrollert({ |
3 |
preventOuterScroll: false , |
4 |
cssPrefix: 'scrollert' , |
5 |
eventNamespace: 'scrollert' , |
6. Apply your own CSS styles to the custom scrollbar.
Change log:
2017-08-28
2017-01-25
2016-11-02
2016-09-19
This awesome jQuery plugin is developed by SyslogicNL. For more Advanced Usages, please check the demo page or visit the official website.