A small web component to enhance scrollable elements with dynamic scroll indicators.
npm install scroll-shadow-element[![npm version][npm-version-badge-src]][npm-package-href]
[![bundle size (minified and gzipped)][bundlesize-badge-src]][bundlesize-href]
A small web component to enhance scrollable elements with dynamic scroll
indicators.
- Easy to use: Just wrap your element with
- Customizable scroll indicators
- [See the demo][demo-href] 🔎
``bash`
npm install scroll-shadow-element
Import the module as part of your app bundle, or with a script tag.
`js`
import 'scroll-shadow-element'
`html`
Or load from a CDN like unpkg
`html
`
Wrap any element for dynamically added scroll indicators. For example:
`html`
Note: When wrapping a non-scrollable