Simple styled checkbox
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 - 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;
}
Developer | Juan Cabrera |
Username | cabrera |
Uploaded | August 12, 2022 |
Rating | 3.5 |
Size | 2,455 Kb |
Views | 42,504 |
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 |
Gallery prototype | 6,514 Kb |
Simple CSS loader. | 2,574 Kb |
A Pen by Juan Cabrera | 2,429 Kb |
CSS timer with radial progress bar | 3,210 Kb |
Dev-social buttons with fancy hover | 3,280 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 |
Day 11 - Calendar Card | Arnellebalane | 6,984 Kb |
Sticky notes with CSS3 | HaiNguyen007 | 2,146 Kb |
A vuejs widget | Chrgl86 | 2,869 Kb |
A Pen by Stan Williams | Stanssongs | 6,706 Kb |
Comment Jquery | SquishyAndroid | 2,421 Kb |
A Pen by utcwebdev | Utcwebdev | 2,856 Kb |
Button fills | Zubfatal | 5,205 Kb |
Dribbble Template | ExtremelyGinger | 2,204 Kb |
Expandable Left Side Bar with jQuery animate | Retrofuturistic | 2,483 Kb |
A Pen by Jonas Bjork | Jonasbjork | 3,115 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!