Clickable round button - best way

Hi All

I’m trying to create a button like the this

and when clicked moves to

I have started on this here - https://jsfiddle.net/bpj0t8ge/1/

It looks ok, I’m not too concerned with the clicked state at the moment.

Is this is best way to do this, is there a more semantic way

1 Like

If this is for a checkbox on/off effect then you can do it like this.

There are more here similar to your example.

1 Like

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