JSFiddle - React, Tailwind, and code Playground

by minh vi

HTML

<input type="range" min="10" max="100">

CSS

input[type=range] {
  -webkit-appearance: none;
}

input[type=range]::-moz-slider-thumb {
  -webkit-appearance: none;
  border: 10;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background: #3399cc;
  cursor: pointer;
  margin-top: -5px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
  transition : all .3s;
  border:0;
  
}
input[type=range]:hover::-moz-slider-thumb{
box-shadow: 0px 0px 0px 4px rgba(51, 153, 204, 0.49);
}

input[type=range]::-moz-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: #3071a9;
}