A simple jQuery plugin to transform simple check boxes into stylish switches
SlickSwitches is a low-footprint and thus environmentally friendly jQuery plugin that allows you to turn any ordinary boring checkbox on your page into a fantastically well-styled switch. Since the switch takes the place of an ordinary checkbox, this jquery plugin degrades without an issue if JavaScript is not enabled. you can extend it with many possibilities. SlickSwitch has got the following configurable options :-
- cssPrefix – Prefix of classes generated by slickswitch.
- animationDuration – How long (in milliseconds) the slider switch should be animated for - use 0 to disable animation. Note: this option replaces the old option from the original version named 'useAnimation' which took a boolean value, so that now you can specify how long the animation of the slider should last.
- toggled – Trigger a function when switch is toggled.
- toggledOn – Trigger a function when switch is switched on.
- toggledOff – Trigger a function when switch is switched off.
Created by Michael Golus http://michaelgolus.com/
The original project appears to be inactive (last commit 2012) so I have added the project on github to make a few changes.