DEV Community

Cover image for inputs type=switch

inputs type=switch

yne profile image Rémy F. Updated on ・1 min read

If you are looking for a Javascript+Jquery+JqueryUI+Grunt way to create a switch:

If you're not : you're in the right place.

What's the trick doc ?

We're simply going to disable the <input> appearance, then use a radial-background to display a white toggle on green-or-grey background.

Can I haz animation ?

I don't know, can you animate a radial background ?


Discussion (0)

Editor guide