It's like a checkbox, but more like a switch !
Switchbox replaces your checkboxes with some pretty switches. As written with Sass, you can easily customize them...
http://alexjoffroy.github.io/switchbox/demo/
npm install --save switchbox
<link rel="stylesheet" href="switchbox.css">
<!-- Or minify -->
<link rel="stylesheet" href="switchbox.min.css">
// Define variables
$switch-primary-color: blue;
$slider-height: 6px;
// Then import
@import "node_modules/switchbox/src/switchbox";
Clone the repo:
git clone https://github.com/alexjoffroy/switchbox.git
Install dependencies:
cd switchbox && npm install
Commands:
npm run watch # watches src and build the dist
npm run build # builds the dist