service-call-tile-feature icon indicating copy to clipboard operation
service-call-tile-feature copied to clipboard

Slider animation does not match built-in

Open mill1000 opened this issue 7 months ago • 2 comments

Hi. Great project, big fan.

Recently started to use the slider feature and noticed that the animation was a bit slow, occasionally glitchy and doesn't match the built-in slider animation.

Here's a sample of what I'm seeing. Top card is using this project, bottom card is using the built-in slider. Image

Is there any CSS that can be used to customize the animation?

mill1000 avatar Apr 28 '25 22:04 mill1000

The sliders are heavily modified input ranges. AFAIK it isn't possible to animate them with CSS, so instead it's value is changed at a fixed rate to make it not suddenly jump to its new value. This isn't efficient and is why it doesn't look great. At some point I need to rewrite the sliders so they no longer use input ranges and instead are just fancy divs which can be animated purely with CSS.

Nerwyn avatar Apr 29 '25 10:04 Nerwyn

@mill1000 I've put out the first alpha for 4.4.0. It reworks the sliders to be transform/transition friendly. I still have more features I want to implement and change to make to the slider before it's ready for a release but it'll be available as a pre-release until then.

Nerwyn avatar May 02 '25 03:05 Nerwyn

Sliders refactored in 4.4.0.

Nerwyn avatar May 18 '25 15:05 Nerwyn

New sliders look a lot better. Thanks!

mill1000 avatar May 19 '25 17:05 mill1000