1.0.1 • Published 7 years ago
toggler.js v1.0.1
#Toggler.js
Toggler.js will change your checkboxes into beautiful toggles.
Usage
Install with npm or bower
npm install toggler.js
bower install toggler.js
HTML
You can add optional parameters to style the toggles
toggle-position (optional) - left - right
toggle-color (optional) (default: green) - #f00
<input type='checkbox' data-toggle-position='right' data-toggle-color='#f00' />
Javascript
$('input[type="checkbox"]).toggler();
That's it!