HTML5 + CSS toggle slides

I was looking for a mobile friendly slide toggle but not having much luck. There a lot of options but I want something flexible, something I could modify with JavaScript, and something that is HTML form compliant. I ended up modifying this W3C example and bundling it in a CSS file. It uses CSS calc() and CSS variables so it requires a semi-modern browser.

SlideToggle demo

Leave A Reply
All content licensed under the Creative Commons License