Animated Checkboxes

Developer
Size
2,911 Kb
Views
40,480

How do I make an animated checkboxes?

Just some simple animated toggle elements.. What is a animated checkboxes? How do you make a animated checkboxes? This script and codes were developed by Jarad Light on 09 October 2022, Sunday.

Animated Checkboxes Previews

Animated Checkboxes - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Animated Checkboxes</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <ul class="choice-list"> <li class="checkbox check"></li> <li class="checkbox heart is-checked"></li> <li class="checkbox star"></li>
</ul> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Animated Checkboxes - Script Codes CSS Codes

body { background-color: #333;
}
.choice-list { margin: 50px auto; width: 640px; display: block; padding: 0;
}
.checkbox { float: left; width: 100px; height: 100px; cursor: pointer; -moz-border-radius: 100px; -webkit-border-radius: 100px; border-radius: 100px; display: block; background-color: rgba(0, 0, 0, 0.25); margin: 20px; -moz-transition: all 0.15s cubic-bezier(0.5, 0, 0, 1.5); -o-transition: all 0.15s cubic-bezier(0.5, 0, 0, 1.5); -webkit-transition: all 0.15s cubic-bezier(0.5, 0, 0, 1.5); transition: all 0.15s cubic-bezier(0.5, 0, 0, 1.5);
}
.checkbox:hover { background-color: rgba(0, 0, 0, 0.5);
}
.checkbox:hover:after { color: white;
}
.checkbox:after { line-height: 100px; font-family: "FontAwesome"; display: block; content: ""; color: rgba(255, 255, 255, 0.5); text-align: center; width: 100%; height: 100%; -moz-transform: scale(0.5); -ms-transform: scale(0.5); -webkit-transform: scale(0.5); transform: scale(0.5); -moz-border-radius: 100%; -webkit-border-radius: 100%; border-radius: 100%; font-size: 30px; -moz-transition: all 0.15s cubic-bezier(0.5, 0, 0, 1.5), font-size 0.35s cubic-bezier(0.5, 0, 0, 3); -o-transition: all 0.15s cubic-bezier(0.5, 0, 0, 1.5), font-size 0.35s cubic-bezier(0.5, 0, 0, 3); -webkit-transition: all 0.15s cubic-bezier(0.5, 0, 0, 1.5), font-size 0.35s cubic-bezier(0.5, 0, 0, 3); transition: all 0.15s cubic-bezier(0.5, 0, 0, 1.5), font-size 0.35s cubic-bezier(0.5, 0, 0, 3);
}
.checkbox.is-checked:after { -moz-transform: scale(1); -ms-transform: scale(1); -webkit-transform: scale(1); transform: scale(1); font-size: 50px; color: white;
}
.checkbox.is-checked:hover:after { -moz-transform: scale(1.1); -ms-transform: scale(1.1); -webkit-transform: scale(1.1); transform: scale(1.1);
}
.check:after { content: "\f00c"; background-color: rgba(165, 194, 92, 0);
}
.check.is-checked:after { background-color: #a5c25c;
}
.heart:after { content: "\f004"; background-color: rgba(241, 76, 56, 0);
}
.heart.is-checked:after { background-color: #f14c38;
}
.star:after { content: "\f005"; background-color: rgba(255, 202, 37, 0);
}
.star.is-checked:after { background-color: #ffca25;
}

Animated Checkboxes - Script Codes JS Codes

$('.checkbox').click(function(){ $(this).toggleClass('is-checked');
});
Animated Checkboxes - Script Codes
Animated Checkboxes - Script Codes
Home Page Home
Developer Jarad Light
Username jaradlight
Uploaded October 09, 2022
Rating 4
Size 2,911 Kb
Views 40,480
Do you need developer help for Animated Checkboxes?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Jarad Light (jaradlight) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!