Style checkboxes and radio inputs as iOS style on/off toggles. No JavaScript needed. HTML5 Standards Compliant
To get started, follow these steps:
- Run
npm install
in your terminal - Run
gulp
in your terminal - The stylesheet can be found in the
/dist
directory
To see simple-toggle
in usage, view the example
Use the following markup
<div class="simple-toggle">
<input type="checkbox" name="name" id="twitter">
<label for="twitter">Twitter</label><!-- this label will be hidden by the css -->
</div>
<label for="twitter">Twitter</label><!-- this label is visible, and is optional -->
Chrome, Safari, FireFox, IE >= 9 (other browsers to be confirmed)
Contributions are always welcome. Please send a pull request or flag any issues.
ISC © Daniel Apt