switchery JS - iOS 7 style switches for checkboxes example

Jquery

Nicesnippets

750

10-04-2021


switchery JS - iOS 7 style switches for checkboxes example

Hello Friends,

In this article, I am going to learn you how to make ios 7 style switches animation using js plugin. We will show iOS 7 style switches for checkboxes example using switchery js. If we make using our custom css then it take long time to integrate.

Switchery is a simple component that help us to make beautiful iOS 7 style switches for our checkbox.


For this example i use CDN of Switchery Plugin so we can simply use CDN without download on local, so we can use bellow path of CDN:

CDN

https://cdnjs.cloudflare.com/ajax/libs/switchery/0.8.2/switchery.min.css

https://cdnjs.cloudflare.com/ajax/libs/switchery/0.8.2/switchery.min.js

Here I will give you full example of Switchery JS Plugin for ios 7 type animation checkboxe, you can also check demo for your testing. So let's follow bellow example:

Example

<!DOCTYPE html>

<html>

<head>

<title>ISOtype switching animation example using switchery JS - NiceSnippets.com</title>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/switchery/0.8.2/switchery.min.css">

<script src="https://cdnjs.cloudflare.com/ajax/libs/switchery/0.8.2/switchery.min.js" type="text/javascript"></script>

</head>

<body>

<input type="checkbox" class="js-switchery" checked />

<script type="text/javascript">

var elem = document.querySelector('.js-switchery');

var init = new Switchery(elem);

</script>

</body>

</html>

It will help you....


Recommended Posts