https://github.com/cotag/ios-toggle
A cross browser toggle switch
https://github.com/cotag/ios-toggle
Last synced: about 2 months ago
JSON representation
A cross browser toggle switch
- Host: GitHub
- URL: https://github.com/cotag/ios-toggle
- Owner: cotag
- License: mit
- Created: 2014-06-18T13:17:03.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-27T04:58:04.000Z (almost 12 years ago)
- Last Synced: 2026-01-12T18:53:59.896Z (5 months ago)
- Language: CSS
- Size: 156 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CSS based iOS 7 style toggle switch
Provides an AngularJS directive and Compass mixin for simple integration
## Installation
1. Open your bower.json
2. Add `"ios-toggle": "latest"` to your dependency list
3. Run `bower install`
4. In your application you can now add:
* ``
## Usage
1. In your SCSS `@import "../bower_components/ios-toggle/ios-toggle";`
2. Use the `@include ios-toggle()` mixin to define your styles.
* See `ios-toggle.scss` for customisation options
3. Create your progress element:
```html
```
Where `$scope.state` will represent if the switch / toggle is active or inactive.