scrollbars

An efficient overflow area with custom scrollbars

Stars
8

scrollbars

An efficient overflow area with custom scrollbars

Heavily influenced by Trackpad Scroll Emulator, but with support for both directions, without the need to call update on size changes or to wrap the elements in a container and without a nasty jQuery dependency.

You also can style the scrollbars yourself by overriding the .scrollbars-handle style.

Installation

$ component install Swatinem/scrollbars

Usage

var scrollbars = require('scrollbars');

var scroller = scrollbars(document.querySelector('#yourcontainer'));

// if you are done with it:
scroller.destroy();

License

LGPLv3

Badges
Extracted from project README
Coverage Status
Related Projects