DEV Community

Discussion on: How to create a custom Toggle Switch using CSS

Collapse
istealersn profile image
Stanley J Nadar

This is really good but you can also achieve the same with just input element without the label.

Overall, good technique 👍

Collapse
httpjunkie profile image
Eric Bishard

You should remix this tortorial or post a codepen, I'd love to see it. I also have a few variations on this same type of toggle but I have it setup as a react component.

Collapse
istealersn profile image
Stanley J Nadar

Here is mine (multi-version & animation in progress): codepen.io/istealersn/pen/abWKJbN