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

Custom step size averaged out across the slider? #359

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

You must be logged in to vote

Have a look at this codepen.
It describes an approach of value mapping. In your case this would look something like this:

<input type="range" min="0" max="6" step="1" value="0">
const valueMapping = [0, 1.5, 2, 6, 10, 100, 400]

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Overbord
Comment options

@andreruffert
Comment options

@Overbord
Comment options

@andreruffert
Comment options

@Overbord
Comment options

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