Vue Scroll Shadow
Component that customizes the scroll and inserts shadow when scrolling exists.
Installation
NPM
npm i vue-scroll-shadow
# or
yarn add vue-scroll-shadow
CDN
Manual
You can also download and import it manually
Module import
Examples
An example of how to use the library:
Properties
Component props:
Name | Description | Type | Required | Default |
---|---|---|---|---|
styleContainer | - | String |
false |
- |
styleSubcontainer | - | String |
false |
- |
scrollColor | Scroll color | String |
false |
#c5c5c5 |
scrollPadding | Left scroll padding | String |
false |
0px |
scrollWidth | Scroll Width | String |
false |
8px |
scrollColorHover | Scroll color when hover | String |
false |
#a6a6a6 |
shadow | - | String |
false |
0 2px 4px rgba(0, 0, 0, 0.2) inset, 0 -2px 4px rgba(0, 0, 0, 0.2) inset |
isShadow | Verify shadow is visible | Boolean |
false |
true |
Demo
Local demo:
git clone https://github.com/andrelmlins/vue-scroll-shadow.git
cd vue-scroll-shadow
npm install && npm run dev