Add UX-friendly shadow to your scrollable list
npm install vue3-scroll-shadowAdd UX-friendly shadow to your scrollable list
``bash`
npm i vue3-scroll-shadow
`javascript`
import VueScrollShadow from 'vue3-scroll-shadow'
`html`
| Name | Type | Default | Description |
| --------------- | ------ | ------------- | ---------------------------------------------------------------------------------------------------------------------- |
| height | String | '100%' | Height of container |
| throttleWait | Number | 100 | Handle scroll event at most once per throttleWait milliseconds |#000
| shadowColorFrom | String | '#00000014' | Start color of scroll shadow. Can be RGB or RGBA:
- #000000
- #0004
- #00000044
- |
| shadowColorTo | String | 'transparent' | End color of scroll shadow. Same as above |
| shadowSize | String | '15px' | Size of shadow |
| Name | Value | Description |
| ----------- | ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
| scrollState | {
isOffTop: Boolean , isOffBottom: Boolean
isOffTop
} | When the list is scrollable, is true when not at the top, isOffBottom is true when not at the bottom |
`html``
// you can use scrollState.isOffTop or scrollState.isOffBottom here