I read that input type="range" supports the attribute list. So I have the following example:
<input type="range" list="values">
<datalist id="values">
<option value="0">
<option value="30">
<option value="40">
<option value="60">
<option value="100">
</datalist>
I need to scroll only by the specified values the same as I specified a step. That is after 0 I need to jump to 30 when scrolling, then to 40 and so on. But I still can scroll by all possible values which are available by default i.e. 0, 1, 2, 3 etc (and I just feel snapping on the positions of the specified values).
In other words, I need input type="range" with "float" or "dynamic" step depending on the values from the list (30-0=30, 40-30=10, 60-40=20 etc.).
Is that possible with this type of input?