Skip to content

dangvanthanh/postcss-scrollable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostCSS Scrollbar

Postcss plugin for pure css scrollbar.

Usage

Installation

$ npm i --save postcss-scrollable

Configure

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

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

License

MIT © Dang Van Thanh

About

Postcss plugin for a pure css custom scrollbar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published