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

Inverted vertical Range Slider #316

Open
dfernandesnamics opened this issue Oct 30, 2018 · 1 comment
Open

Inverted vertical Range Slider #316

dfernandesnamics opened this issue Oct 30, 2018 · 1 comment

Comments

@dfernandesnamics
Copy link

@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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants