Hand-picked HTML and CSS code examples, tutorials and articles
CSS Gallery, jQuery plugins

Bootstrap Button Toggle (On/Off Switch)

Bootstrap Button Toggle (On/Off Switch)

Working on a client project that will be using Bootstrap, and needed to build a toggle/switch that came in a couple different sizes. I wasn't seeing that as a built-in option within Bootstrap, and I didn't really like the ones already out there that I found from a quick search (I didn't want to use a plugin, just wanted it to utilize Bootstrap's built-in JS), so I decided to make my own.

Aanjulena Sweet
FEBRUARY 16, 2017
Made with:

Find the Demo

See the Pen Bootstrap Button Toggle (On/Off Switch) by Aanjulena Sweet (@aanjulena) on CodePen.