0.1.1 • Published 8 years ago
@bezet/scrollbars v0.1.1
scrollbars

A library providing customized scrollbars to a given elements.
Installation
npm i @bezet/scrollbarsUsage
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