I am currently stuck at the part whenever I drag a HTML5 slider, it will show a thumbnail/small picture on the top or bottom of the slider. My slider is something like this…
<input name="sliderStatus" id="sliderStatus" type="range" min="0" max="100" value="0" step="1"/>
But how to do the thumbnail thingy? Any example? Thanks (:
As I understand you, you want to change thumbnail size according to the input
rangevalue.You need to add
onchangeevent listener to your range input and attach it to some callback,updateThumbnailfor example:Then in your callback according to your value you can change thumbnail width:
UPDATE:
According to your comment you need to change
stepattribute in your range input:step=”10″
And for example modify your function to show your images:
Html markup for images should be:
See demo on jsFiddle