Figma Support Forum

A simple switch, but it starts in the middle? Can it be done?

My goal is to create a slider switch but instead of toggling from on to off and back again, I’d like the initial state to be with the switch in the middle (and slightly greyed) so the user can then choose either left or right.

I’ve tried multiple drag conditions on the switch but it seems to always take the first argument.

Any ideas?

Hi @ChrisW, I edited your file and now everything works as expected.

For Smart Animate to work well, you need to take into account that the layer names are the same.

Hi @tank666, once again you’ve solved it for me :grinning: Ensuring the layer names matched meant the two arguments could be fulfilled. Thanks for helping!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.