Negative step #360
-
Hello, I'd like to set up negative step like "-5" here, so that the left end is 125 and the right end is 90.
Is this possible? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I've tried to use |
Beta Was this translation helpful? Give feedback.
-
@matejevic have a look at this codepen. <input type="range" min="0" max="7" step="1" value="0"> const valueMapping = [125, 120, 115, 110, 105, 100, 95, 90] |
Beta Was this translation helpful? Give feedback.
@matejevic have a look at this codepen.
It describes an approach of value mapping. I guess this would be the easiest way to achieve this.
In your case this would look something like this: