scrollbars
A library providing customized scrollbars to a given elements.
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