Scrollbar
Default Scroll
Just use data attribute data-simplebar
and addmax-height: **px
oh fix height
RTL Position
Just use data attributedata-simplebar data-simplebar-direction='rtl'
and add max-height: **px
oh fix height
Scroll Size
Just use data attribute data-simplebar
and addmax-height: **px
oh fix height
Scroll Color
Just use data attributedata-simplebar data-simplebar-primary
and addmax-height: **px
oh fix height
SimpleBar does only one thing: replace the browser's default scrollbar with a custom CSS-styled one without losing performances. Unlike some popular plugins, SimpleBar doesn't mimic scroll with Javascript, causing janks and strange scrolling behaviours... You keep the awesomeness of native scrolling...with a custom scrollbar!
SimpleBardoes NOT implement a custom scroll behaviour. It keeps the nativeoverflow: auto
scroll and onlyreplace the scrollbar visual appearance.
Design it as you want
SimpleBar uses pure CSS to style the scrollbar. You can easily customize it as you want! Or even have multiple style on the same page...or just keep the default style ("Mac OS" scrollbar style).
Lightweight and performant
Only 6kb minified. SimpleBar doesn't use Javascript to handle scrolling. You keep the performances/behaviours of the native scroll.
Supported everywhere
SimpleBar has been tested on the following browsers: Chrome, Firefox, Safari, Edge, IE11.