@bezet/scrollbars

0.1.1 • Public • Published

scrollbars NPM version Dependency Status

A library providing customized scrollbars to a given elements.

DEMO

Installation

npm i @bezet/scrollbars

Usage

Add styles

<link rel="stylesheet" type="text/css" href="dist/scrollbars.css">

Add JS

Either

import Scrollbars from '@bezet/scrollbars';
const myScrollbars = new Scrollbars({
  selector: '.scrollbars',
  className: 'scrollbars',
  contentClass: 'scrollbars__content-wrapper',
  hoverable: true
});

or

<script type="text/javascript" src="dist/scrollbars.js"></script>
<script type="text/javascript">
  var myScrollbars = new Scrollbars({
    selector: '.scrollbars',
    className: 'scrollbars',
    contentClass: 'scrollbars__content-wrapper',
    hoverable: true
  });
</script>

License

MIT © Bartek Zadara

Readme

Keywords

Package Sidebar

Install

npm i @bezet/scrollbars

Weekly Downloads

2

Version

0.1.1

License

MIT

Last publish

Collaborators

  • bezet