JSFiddle - React, Tailwind, and code Playground

by Léo Durand

HTML

<input type="range"/>

CSS

/*Chrome*/
@media screen and (-webkit-min-device-pixel-ratio:0) {
    input[type='range'] {
      overflow: hidden;
      width: 200px;
      -webkit-appearance: none;
      background-color: lightgrey;
      border-radius:50px;
    }
    
    input[type='range']::-webkit-slider-runnable-track {
      height: 17px;
      -webkit-appearance: none;
      color: red;
      margin-top: -1px;
      border-radius:90px;
    }
    
    input[type='range']::-webkit-slider-thumb {
      width: 17px;
      -webkit-appearance: none;
      height: 17px;
      cursor: ew-resize;
      background: black;
      border-radius:20px;
      border: 4px solid grey;
      box-shadow: -80px 0 0 80px grey;
    }

}
/** FF*/
input[type="range"]::-moz-range-progress {
  background-color: #43e5f7; 
}
input[type="range"]::-moz-range-track {  
  background-color: #9a905d;
}
/* IE*/
input[type="range"]::-ms-fill-lower {
  background-color: #43e5f7; 
}
input[type="range"]::-ms-fill-upper {  
  background-color: #9a905d;
}