This version is old school.
Please find jQuery plugins on npm.
Scrollbar plugin
by Bryan Cua
$.fn.scrollbar creates horizontal and vertical scrollbars for objects with overflow:hidden. The function only creates a scrollbar scaled to show length of contents, but does not implement any 'scrolling' functionality. Rather, it will provide the user with two events: 'scrollbar::dragX' and 'scrollbar::dragY' which return dx and dy of the scroll.
Tags
Versions
Version
Date
0.1.0
Jun 07, 2014