andreruffert/rangeslider.js

Inverted vertical Range Slider

dfernandesnamics opened this issue · 1 comments

@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

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)
  }
})