JSFiddle - React, Tailwind, and code Playground
HTML
<div id="scroller">
<div></div>
</div>
<div id="scroller-overlay"></div>
CSS
#scroller {
position: absolute;
top: 0px;
left: 0px;
height: 100px;
width: 50px;
background-color: red;
overflow: auto;
}
#scroller>div {
position: absolute;
top: 0px;
left: 5px;
height: 500px;
width: 30px;
background-color: blue;
}
#scroller-overlay {
position: absolute;
top: 0px;
left: 0px;
height: 100px;
width: 50px;
/*display: none;*/
}