Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Negative step #360

Answered by andreruffert
matejevic asked this question in Q&A
Discussion options

You must be logged in to vote

@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:

<input type="range" min="0" max="7" step="1" value="0">
const valueMapping = [125, 120, 115, 110, 105, 100, 95, 90]

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by andreruffert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #346 on February 17, 2021 13:24.