Skip to main content
Question

Create slider that moves freely


I am trying to create a slider that moves freely. i have created a slider with 5 stops (speeds). I have to drag to each stop in order, but i would like to be able to click and select the speed.
For example, i would like to click on speed 2 then be able to jump to speed 5 by either dragging to or clicking on the 5.
Any ideas?

4 replies

Avokadomos
  • New Participant
  • 376 replies
  • July 20, 2023

You can utilize the drag interaction to create draggable elements. The only drawback I find is that you only can drag it one step at a time, because the drag interaction only can point to one end frame. I haven’t found any way to circumvent this.

Use click interactions together with smart animate for the steps to make the slider move smoothly to the clicked step.

Here’s an example (you can open it and inspect the design):


Hi,

I would also like to know if there is a solution for this.
I would like to design a slider that moves freely, which corresponds to an asset growing/shrinking in size as the slider moves freely left and right.

Thanks.


Hannah10
  • 1 reply
  • October 14, 2024

Does anyone know how the numbers were done to change with the slider in the green and yellow “Change meter” example in this file?


Avokadomos
  • New Participant
  • 376 replies
  • October 15, 2024

You mean this one?

Figma – 12 Aug 22

The number is a variable that is updated when clicking the buttons. The variable is then inserted in a text element.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings