JSFiddle - React, Tailwind, and code Playground

by jasonkylefrank

HTML

<div id="container">
    <div id="content"></div>
</div>

SCSS

body {
    min-height: 1000px
}
div#container {
    height: 200px;
    width: 300px;
    overflow: scroll;
    margin: 10px;
    border: 1px solid #000
}
div#content {
    height: 1000px;
}
::-webkit-scrollbar {
    width: 14px;
    height: 18px;
    background-color: rgba(0, 0, 0, 0.07);
    //border-right: 8px solid yellow;
}
::-webkit-scrollbar-thumb {
    border-right: 18px solid transparent;
    height: 6px;
    border: 4px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
    -webkit-border-radius: 7px;
    background-color: rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: inset -1px -1px 0px rgba(0, 0, 0, 0.05), inset 1px 1px 0px rgba(0, 0, 0, 0.05);
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.4);
  //width: 12px;
}
::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}
::-webkit-scrollbar-corner {
    background-color: transparent;
}