Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 944 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 944 Bytes

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.

Build Status Coverage Status

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