1.0.4 • Published 6 years ago
dg-custom-scrollbars v1.0.4
Custom scrollbars demo - https://devzhen.github.io/dg-custom-scrollbars
**Installation**
- npm:
npm install dg-custom-scrollbars
- Bower:
bower install dg-custom-scrollbars
**How to use it**
- Include 'dg-custom-scrollbars.min.css' in the head tag your HTML document:
<link rel="stylesheet" href="/path/to/dist/css/dg-custom-scrollbars.min.css" />
- Include 'dg-custom-scrollbars.min.js' in your HTML document:
<script src="/path/to/dist/js/dg-custom-scrollbars.min.js"></script>
Usage:
var textarea = document.getElementById('some_id'); var cs = new CustomScrollbar(textarea);
var cs = new CustomScrollbar(document.body);