MCPcopy Index your code
hub / github.com/dolphin-wood/smooth-scrollbar

github.com/dolphin-wood/smooth-scrollbar @v8.8.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v8.8.4 ↗ · + Follow
225 symbols 438 edges 57 files 31 documented · 14% 19 cross-repo links updated 3y agov8.8.4 · 2023-06-05★ 3,35544 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Smooth Scrollbar

Customizable, Flexible, and High Performance Scrollbars!

npm monthly downloads core size gzip size Build status Gitpod Ready-to-Code

Installation

⚠️ DO NOT use custom scrollbars unless you know what you are doing. Read more

Tell us about the features you want in the next major update.

Via NPM (recommended):

npm install smooth-scrollbar --save

Via Bower:

bower install smooth-scrollbar --save

Browser Compatibility

Browser Version
IE 10+
Chrome 22+
Firefox 16+
Safari 8+
Android Browser 4+
Chrome for Android 32+
iOS Safari 7+

Demo

https://idiotwu.github.io/smooth-scrollbar/

Usage

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="https://github.com/dolphin-wood/smooth-scrollbar/raw/v8.8.4/dist/smooth-scrollbar.js"></script>

<script>
  var Scrollbar = window.Scrollbar;

  Scrollbar.init(document.querySelector('#my-scrollbar'));
</script>

Documentation

latest 7.x

FAQ

  • How to deal with position: fixed elements? #362
  • How to temporarily stop scrolling? #361
  • How to enable hash/anchor scrolling? #360
  • How to direct all scrolling to a particular direction? #359
  • How to disable scrolling in a particular direction? #357
  • more...

Who's Using It

  • Awwwards Conference: An Event for UX / UI Designers and Web Developers.
  • Listeners Playlist: A cool music player designed by Jiyong Ahn sharing musics from the facebook group 'Listeners Playlist'.
  • Matter: A new and better way to grow your professional skills.
  • Parsons Branding: Brand strategy and design studio based in Cape Town.
  • zer0bin: Just a place to paste
  • Feel free to add yours here 🤗.

Credits

License

MIT

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 118
Function 71
Class 24
Interface 8
Enum 4

Languages

TypeScript100%

Modules by API surface

src/scrollbar.ts24 symbols
src/utils/touch-record.ts20 symbols
src/plugins/overscroll/index.ts16 symbols
src/interfaces/scrollbar.ts16 symbols
demo/scripts/monitor.ts15 symbols
src/index.ts12 symbols
src/plugins/overscroll/glow.ts11 symbols
src/interfaces/track.ts11 symbols
src/plugin.ts10 symbols
src/utils/event-hub.ts7 symbols
src/track/track.ts7 symbols
src/track/thumb.ts6 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@types/dat-gui0.6.3 · 1×
@types/prismjs1.16.0 · 1×
autoprefixer7.2.6 · 1×
chalk2.4.2 · 1×
core-js3.6.4 · 1×
cpx1.5.0 · 1×
css-loader0.28.11 · 1×
dat-gui0.5.0 · 1×
execa0.8.0 · 1×
inquirer6.5.2 · 1×
listr0.12.0 · 1×

For agents

$ claude mcp add smooth-scrollbar \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page