Simple styled checkbox

Developer
Size
2,455 Kb
Views
42,504

How do I make an simple styled checkbox?

What is a simple styled checkbox? How do you make a simple styled checkbox? This script and codes were developed by Juan Cabrera on 12 August 2022, Friday.

Simple styled checkbox Previews

Simple styled checkbox - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple styled checkbox</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <input id="chk" type="checkbox" /><label for="chk">click this styled checkbox</label>
</body>
</html>

Simple styled checkbox - Script Codes CSS Codes

input[type="checkbox"] + label { position: absolute; width: 60px; height: 60px; border: 10px solid #555; border-radius: 100%; top: 50%; left: 10%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); -webkit-transition: all ease-out 200ms; transition: all ease-out 200ms; text-indent: 90px; font: normal normal 30px/60px "Helvetica"; white-space: nowrap; color: #555; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
input[type="checkbox"] + label:after { content: ""; position: absolute; width: 0px; height: 25px; border-bottom: 10px solid #22b573; border-left: 10px solid #22b573; top: 25%; left: 50%; -webkit-transform-origin: bottom left; transform-origin: bottom left; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); opacity: 0; -webkit-transition: all ease-out 200ms; transition: all ease-out 200ms;
}
input[type="checkbox"]:checked + label { border: 10px solid #22b573;
}
input[type="checkbox"]:checked + label:after { opacity: 1; width: 70px;
}
#chk { display: none;
}
Simple styled checkbox - Script Codes
Simple styled checkbox - Script Codes
Home Page Home
Developer Juan Cabrera
Username cabrera
Uploaded August 12, 2022
Rating 3.5
Size 2,455 Kb
Views 42,504
Do you need developer help for Simple styled 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!

Juan Cabrera (cabrera) Script Codes
Create amazing marketing copy 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!