Postcss plugin for pure css scrollbar.
$ npm i --save postcss-scrollable
module.exports = {
plugins: {
require('postcss-scrollable')
}
}
With options
module.exports = {
plugins: {
require('postcss-scrollable')({
color: '#20692b',
width: '4px',
height: '4px',
radius: '4px'
})
}
}
See Postcss docs for examples for your environment.
Options | Description | Value |
---|---|---|
color | Color of scrollbar | HEX, RGB, RGBA, HSL. Default #006387 |
width | Width of scrollbar | px, em, rem. Default 6px |
height | Height of scrollbar | px, em, rem. Default 6px |
radius | Radius of scrollbar | px, em, rem. Default 6px |
MIT © Dang Van Thanh