In todays tutorial we will explore range slider.
Basic syntax:
[html]
<input type="range" id="rangeinput" value="50"/>
[/html]
You can edit the CSS and change the slider icon.
[css]
input[type="range"] {
-webkit-appearance: none;
background-color: black;
height: 2px;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
position: relative;
top: -1px;
z-index: 1;
width: 11px;
height: 11px;
-webkit-border-radius: 40px;
-moz-border-radius: 40px;
border-radius: 40px;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ebf1f6), color-stop(50%,#abd3ee), color-stop(51%,#89c3eb), color-stop(100%,#d5ebfb));
}
[/css]
You can check the demo and download the files. Demo will be only supported in WEBKIT browsers