Checkbox
How do I make an checkbox?
What is a checkbox? How do you make a checkbox? This script and codes were developed by Eliseo Martelli on 18 January 2023, Wednesday.
Checkbox - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Checkbox</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <input type="checkbox" id="sw">
<label for="sw"><i></i></label>
</body>
</html>
Checkbox - Script Codes CSS Codes
body { width: 100%; height: 100%; background: #212121;
}
input[type="checkbox"] { opacity:0;
}
input[type="checkbox"] + label { position: absolute; top: 40%; left: 40%; transform: translate(-50%, -50%);
}
input[type="checkbox"] + label i { width: 200px; height: 100px; border-radius: 50px; background: #999; display: block; position: absolute; box-shadow: 0px 0px 55px -10px rgba(0,0,0,0.5); transition: background 0.125s linear;
}
input[type="checkbox"] + label i::before{ content: ''; display: inline-block; position: absolute; top: 10px; left: 10px; width: 80px; height: 80px; border-radius: 40px; background-color: #eee; box-shadow: 0px 0px 55px -10px rgba(0,0,0,0.5); transition: margin 0.125s linear, width 0.075s linear;
}
input[type="checkbox"] + label i:active:before { width: 100px;
}
input[type="checkbox"]:checked + label i:before { margin-left: 100px; width: 80px; heigth: 80px; direction: rtl;
}
input[type="checkbox"]:checked + label i:active:before { right: 0; margin-left: 80px; width: 100px;
}
input[type="checkbox"]:checked + label i { background: #00ff92;
}
Developer | Eliseo Martelli |
Username | eliseomartelli |
Uploaded | January 18, 2023 |
Rating | 3 |
Size | 1,712 Kb |
Views | 6,072 |
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!
Name | Size |
Google Dots Animation | 2,241 Kb |
A Pen by Eliseo Martelli | 1,708 Kb |
Cute Terminal | 2,392 Kb |
Simple Heart | 1,852 Kb |
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!
Name | Username | Size |
CSS3 Fullscreen Background Slideshow | Leetech | 3,435 Kb |
CSS Gem Badge | Orchard | 3,335 Kb |
Animated Donut Chart | Jplhomer | 3,808 Kb |
Birthday Party Starter | Aussieyang | 1,629 Kb |
Awesome | Samarthpd | 2,901 Kb |
Simple, flat contact form | Zeaklous | 2,719 Kb |
Arrow Navigation | Hinducows | 1,973 Kb |
Table border-collapse property | Maxds | 1,672 Kb |
CSS 3D Radio buttons | Andreasnylin | 1,650 Kb |
SVG Basics | HipsterBrown | 1,852 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!