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