simeydotme / svelte-range-slider-pips

Multi-Thumb, Accessible, Beautiful Range Slider with Pips
https://simeydotme.github.io/svelte-range-slider-pips/
Mozilla Public License 2.0
435 stars 40 forks source link

How can I turn off the spring animation completely? #7

Closed rchrdnsh closed 3 years ago

rchrdnsh commented 3 years ago

It's quite distracting and not what I am personally looking for...How would I go about disabling the spring animation?

rchrdnsh commented 3 years ago

For anybody wondering in the future, I did this:

<RangeSlider range="min" values={[50]} float springValues={{stiffness: 1, damping: 1}}/>
simeydotme commented 3 years ago

Thanks for leaving the answer!

TJKoury commented 2 years ago

This doesn't seem to work for me, it still bounces erratically.

simeydotme commented 2 years ago

This doesn't seem to work for me, it still bounces erratically.

@TJKoury could you provide a REPL for demo purposes?

https://svelte.dev/repl/27337bf752ee41bcbc49534fb794e4ca?version=3.48.0

works here ^