|
|
3年前 | |
|---|---|---|
| .. | ||
| decorators | 3年前 | |
| dist | 3年前 | |
| events | 3年前 | |
| geometry | 3年前 | |
| interfaces | 3年前 | |
| node_modules/core-js | 3年前 | |
| plugins/overscroll | 3年前 | |
| scrolling | 3年前 | |
| src | 3年前 | |
| track | 3年前 | |
| utils | 3年前 | |
| CHANGELOG.md | 3年前 | |
| LICENSE | 3年前 | |
| README.md | 3年前 | |
| index.d.ts | 3年前 | |
| index.js | 3年前 | |
| index.js.map | 3年前 | |
| options.d.ts | 3年前 | |
| options.js | 3年前 | |
| options.js.map | 3年前 | |
| package.json | 3年前 | |
| plugin.d.ts | 3年前 | |
| plugin.js | 3年前 | |
| plugin.js.map | 3年前 | |
| polyfills.d.ts | 3年前 | |
| polyfills.js | 3年前 | |
| polyfills.js.map | 3年前 | |
| scrollbar.d.ts | 3年前 | |
| scrollbar.js | 3年前 | |
| scrollbar.js.map | 3年前 | |
| style.d.ts | 3年前 | |
| style.js | 3年前 | |
| style.js.map | 3年前 | |
Customizable, Flexible, and High Performance Scrollbars!
⚠️ DO NOT use custom scrollbars unless you know what you are doing. Read more
Via NPM (recommended):
npm install smooth-scrollbar --save
Via Bower:
bower install smooth-scrollbar --save
| Browser | Version |
|---|---|
| IE | 10+ |
| Chrome | 22+ |
| Firefox | 16+ |
| Safari | 8+ |
| Android Browser | 4+ |
| Chrome for Android | 32+ |
| iOS Safari | 7+ |
https://idiotwu.github.io/smooth-scrollbar/
Since this package has a pkg.module field, it’s highly recommended to import it as an ES6 module with some bundlers like webpack or rollup:
import Scrollbar from 'smooth-scrollbar';
Scrollbar.init(document.querySelector('#my-scrollbar'));
If you are not using any bundlers, you can just load the UMD bundle:
<script src="dist/smooth-scrollbar.js"></script>
<script>
var Scrollbar = window.Scrollbar;
Scrollbar.init(document.querySelector('#my-scrollbar'));
</script>
| latest | 7.x |
|---|