JSFiddle - React, Tailwind, and code Playground
by D S
CSS
.bar {
float: left;
position: absolute;
width: 96%;
height: 10px;
bottom: 10px;
border: 1px solid #000;
margin-left: 2%
}
.bar {
border: 1px solid #fff
}
.bar > .buffer {
background: rgba(185, 176, 176, 0.8);
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
width: 0;
height: 100%
}
.bar > .played {
background: rgba(0, 0, 0, 0.6);
width: 0;
height: 100%;
position: absolute;
top: 0
}
.bar > .played {
background: rgba(255, 255, 255, 0.6)
}
.bar > .played > .handle {
float: right;
width: 2px;
height: 16px;
background: rgba(0, 0, 0, 0.6);
margin-top: -3px
}
.bar > .played > .handle {
background: rgba(255, 255, 255, 0.6)
}