仓库源文站点原文


layout: post title: iOS 7 Switchery

tags: [ios, css]

Result Preview and Live Example

preview

example

Simple and Easy to Use

Used input as prototype.

Get or set its attributes or properties, will do just fine.

Html file is simple as below, there is no javascript action at all.

All you needed is a piece of html and css.

<input class="switchery" type="checkbox">
<input class="switchery" type="checkbox" checked>
<input class="switchery" type="checkbox" disabled>
<input class="switchery" type="checkbox" checked disabled>

Properties

input switchery
checked checked
disabled disabled

Thanks to abpetkov@github for styles