JSFiddle - React, Tailwind, and code Playground
by ksoncan34
HTML
<input type="range" min=0 max=100/>
CSS
body {
background: #eee;
}
input[type=range] {
width: 100%;
margin: 6px 0;
background-color: transparent;
-webkit-appearance: none;
}
input[type=range]:focus {
outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
background: #717171;
border: 0;
width: 100%;
height: 3px;
cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
margin-top: -6px;
width: 15px;
height: 15px;
background: #ffffff;
border: 0;
border-radius: 50px;
cursor: pointer;
-webkit-appearance: none;
}
input[type=range]:focus::-webkit-slider-runnable-track {
background: #bfbfbf;
}
input[type=range]::-moz-range-track {
background: #bfbfbf;
border: 0;
width: 100%;
height: 3px;
cursor: pointer;
}
input[type=range]::-moz-range-thumb {
width: 15px;
height: 15px;
background: #ffffff;
border: 0;
border-radius: 50px;
cursor: pointer;
}
input[type=range] {
width: 100%;
margin: 6px 0;
background-color: transparent;
-webkit-appearance: none;
}
input[type=range]:focus {
outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
background: #bfbfbf;
border: 0;
width: 100%;
height: 3px;
cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
margin-top: -6px;
width: 15px;
height: 15px;
background: #ffffff;
border: 0;
border-radius: 50px;
cursor: pointer;
-webkit-appearance: none;
}
input[type=range]:focus::-webkit-slider-runnable-track {
background: #bfbfbf;
}
input[type=range]::-moz-range-track {
background: #bfbfbf;
border: 0;
width: 100%;
height: 3px;
cursor: pointer;
}
input[type=range]::-moz-range-thumb {
width: 15px;
height: 15px;
background: #ffffff;
border: 0;
border-radius: 50px;
cursor: pointer;
}