🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

csb.js is a simple jQuery plugin used to create CSS styleable custom scrollbars that will auto reveal when you start scrolling/swiping within the scrollable area.

scrollbar

Documentation

customScrollBars

jQuery extension for custom scrollbars.

Usage

This is a custom jQuery function, so jQuery is required in the page. Further you will need to load the basic CSS and of course the JavaScript file.

To convert an element into a scrollable element, call the customScrollBar function:

$('#myScrollableNode').customScrollBar();

The new scrollbar can easily be styled via the CSS.

Limitations

  • At this time, it is only possible to add vertical scrollbars. Horizontal scrolling is not (yet?) supported.
  • The scrollable area needs to have a height.

You May Also Like