JS Slider
by Alberto_Montiel
HTML
<div class="slider">
<input type="range" min="0" max="100" id="slider"/>
</div>
CSS
#slider{
background-image: url(http://svgshare.com/i/36r.svg);
background-repeat: no-repeat;
padding-top: 35px;
background-color: #e6e6e6;
background-position: bottom;
background-size: auto;
max-width: 538px;
}
input[type=range] {
-webkit-appearance: none;
width: 100%;
}
input[type=range]:focus {
outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
width: 100%;
height: 4px;
cursor: pointer;
box-shadow: 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px rgba(13, 13, 13, 0);
background: #2095f2;
border-radius: 0px;
border: 0px solid rgba(32, 149, 242, 0.46);
}
input[type=range]::-webkit-slider-thumb {
box-shadow: 1px 1px 2.5px #636363, 0px 0px 1px #707070;
border: 1.8px solid #ffffff;
height: 24px;
width: 24px;
border-radius: 24px;
background: #2095f2;
cursor: pointer;
-webkit-appearance: none;
margin-top: -10px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
background: #2095f2;
}
input[type=range]::-moz-range-track {
width: 100%;
height: 4px;
cursor: pointer;
box-shadow: 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px rgba(13, 13, 13, 0);
background: #2095f2;
border-radius: 0px;
border: 0px solid rgba(32, 149, 242, 0.46);
}
input[type=range]::-moz-range-thumb {
box-shadow: 1px 1px 2.5px #636363, 0px 0px 1px #707070;
border: 1.8px solid #ffffff;
height: 24px;
width: 24px;
border-radius: 24px;
background: #2095f2;
cursor: pointer;
}
input[type=range]::-ms-track {
width: 100%;
height: 4px;
cursor: pointer;
background: transparent;
border-color: transparent;
color: transparent;
}
input[type=range]::-ms-fill-lower {
background: #2095f2;
border: 0px solid rgba(32, 149, 242, 0.46);
border-radius: 0px;
box-shadow: 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px rgba(13, 13, 13, 0);
}
input[type=range]::-ms-fill-upper {
background: #2095f2;
border: 0px solid rgba(32, 149, 242, 0.46);
border-radius: 0px;
box-shadow: 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px...