Checkbox

Size
1,712 Kb
Views
6,072

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 Previews

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;
}
Checkbox - Script Codes
Checkbox - Script Codes
Home Page Home
Developer Eliseo Martelli
Username eliseomartelli
Uploaded January 18, 2023
Rating 3
Size 1,712 Kb
Views 6,072
Do you need developer help for Checkbox?

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!

Eliseo Martelli (eliseomartelli) Script Codes
Create amazing SEO content 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!