# simple-scrollbar **Repository Path**: mirrors_singod/simple-scrollbar ## Basic Information - **Project Name**: simple-scrollbar - **Description**: Very simple and lightweight vanilla javascript library for creating a custom scrollbar cross-browser. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [](https://www.jsdelivr.com/package/npm/simple-scrollbar) # SimpleScrollbar Very simple vanilla javascript library for creating a custom scrollbar cross-browser and cross-devices. ## Demo http://buzinas.github.io/simple-scrollbar ## React version I also open sourced a newer and more modern React version at: https://github.com/closeio/react-custom-scroller ## Benefits - Extremely lightweight (less than 1KB after gzip and minify) - It uses the native scroll events, so: - All the events work and are smooth (mouse wheel, space, page down, page up, arrows etc). - The performance is awesome! - No dependencies, completely vanilla Javascript! - RTL support (thanks to [@BabkinAleksandr](https://github.com/BabkinAleksandr)) ## Browser Support It was developed with evergreen browsers in mind, but it works on IE11. ## Usage You can use this library as a script tag, or you can import it as a npm module, eg: ### Script tag Download the script [here](https://github.com/buzinas/simple-scrollbar/blob/master/simple-scrollbar.min.js) and the styles from [here](https://github.com/buzinas/simple-scrollbar/blob/master/simple-scrollbar.css) and include it: ```html ``` Or include it via [jsDelivr CDN](https://www.jsdelivr.com/package/npm/simple-scrollbar): ```html ``` ### CommonJS ```js const SimpleScrollbar = require('simple-scrollbar'); require('simple-scrollbar/simple-scrollbar.css') ``` ### ES2015 modules ```js import SimpleScrollbar from 'simple-scrollbar' import 'simple-scrollbar/simple-scrollbar.css' ``` ### Auto-binding Include the attribute `ss-container` in any `