Skip to content

Swatinem/scrollbars

Repository files navigation

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

About

An efficient overflow area with custom scrollbars

Resources

Stars

Watchers

Forks

Packages

No packages published