Skip to content

A simple jQuery plugin to transform simple check boxes into stylish switches

License

Notifications You must be signed in to change notification settings

LukeKirby/jQuery-slickswitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SlickSwitch

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.

About

A simple jQuery plugin to transform simple check boxes into stylish switches

Resources

License

Stars

Watchers

Forks

Packages

No packages published