Inverted vertical Range Slider
dfernandesnamics opened this issue · 1 comments
dfernandesnamics commented
@andreruffert
Hi André , love your work,
i've been trying out something on CodePen with the Rangeslider. Now I'm wondering, if you can invert the vertical range slider, so you pull the ball from top to bottom?
Would be cool if you could give me some intel/tips on this topic,
Thanks a lot
Best regards,
Daniel
LexDonowan commented
it’s not difficult actually
<input type="range" data-orientation="vertical" min="0" max="100" value="100">
$('input[type="range"]').rangeslider({
polyfill: false,
onSlide: function(pos, val) {
val = (100 - val)
console.log(val)
}
})