JSFiddle - React, Tailwind, and code Playground
by Teuta Koraqi
HTML
<div class="range-slider-holder">
<input type="range" min="0" max="100" value="40"/>
</div>
CSS
/* .range-slider-holder {
height: 100px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
*/
.range-slider-holder input {
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: none;
cursor: pointer;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 100%;
min-height: 50px;
overflow: hidden;
width: 240px;
}
.range-slider-holder input:focus {
-webkit-box-shadow: none;
box-shadow: none;
outline: none;
}
.range-slider-holder input::-webkit-slider-runnable-track {
background: #00a3de;
content: "";
height: 10px;
pointer-events: none;
}
.range-slider-holder input::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
background: #fff;
background: #fff;
width: 20px;
height: 20px;
background: #fff;
border: 1px solid #bababa;
cursor: pointer;
border-radius: 100%;
background-image: url("../images/pause-icon-grey.svg");
background-size: 10px;
background-repeat: no-repeat;
background-position: center center;
-webkit-box-shadow: 5px 0 0 -8px #c7c7c7, 6px 0 0 -8px #c7c7c7, 7px 0 0 -8px #c7c7c7, 8px 0 0 -8px #c7c7c7, 9px 0 0 -8px #c7c7c7, 10px 0 0 -8px #c7c7c7, 11px 0 0 -8px #c7c7c7, 12px 0 0 -8px #c7c7c7, 13px 0 0 -8px #c7c7c7, 14px 0 0 -8px #c7c7c7, 15px 0 0 -8px #c7c7c7, 16px 0 0 -8px #c7c7c7, 17px 0 0 -8px #c7c7c7, 18px 0 0 -8px #c7c7c7, 19px 0 0 -8px #c7c7c7, 20px 0 0 -8px #c7c7c7, 21px 0 0 -8px #c7c7c7, 22px 0 0 -8px #c7c7c7, 23px 0 0 -8px #c7c7c7, 24px 0 0 -8px #c7c7c7, 25px 0 0 -8px #c7c7c7, 26px 0 0 -8px #c7c7c7, 27px 0 0 -8px #c7c7c7, 28px 0 0 -8px #c7c7c7, 29px 0 0 -8px #c7c7c7, 30px 0 0 -8px #c7c7c7, 31px 0 0 -8px #c7c7c7, 32px 0 0 -8px #c7c7c7, 33px 0 0 -8px #c7c7c7, 34px 0 0 -8px #c7c7c7, 35px 0 0...