Checkbox
How do I make an checkbox?
What is a checkbox? How do you make a checkbox? This script and codes were developed by Anton on 11 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> <label> <input type="checkbox" class="option-input checkbox" checked> Checkbox 1
</label>
<label> <input type="checkbox" class="option-input checkbox"> Checkbox 2
</label>
<label> <input type="checkbox" class="option-input checkbox"> Checkbox 3
</label>
<label> <input type="radio" class="option-input radio" name="example" /> Radio option 1
</label>
<label> <input type="radio" class="option-input radio" name="example" /> Radio option 2
</label>
<label> <input type="radio" class="option-input radio" name="example" /> Radio option 3
</label>
</body>
</html>
Checkbox - Script Codes CSS Codes
body{ background-color: #ebebeb;
}
.option-input { -webkit-appearance: none; -moz-appearance: none; -ms-appearance: none; -o-appearance: none; appearance: none; position: relative; top: 13.33333px; width: 40px; height: 40px; -webkit-transition: all 0.15s ease-out 0; -moz-transition: all 0.15s ease-out 0; transition: all 0.15s ease-out 0; background: #ebebeb; border: none; color: white; cursor: pointer; display: inline-block; outline: none; position: relative; margin-right: 0.5rem; z-index: 1000; border-radius: 2px; border: 1px solid #d2d2d2; box-shadow: inset 0px 1px 3px 1px #d2d2d2;
}
.option-input:hover { background: #ededed; box-shadow: inset 0px 0px 5px 0px #d3d3d3; }
.option-input:checked { background: transparent; border: 0px solid grey; box-shadow: inset 0px 0px 0px 0px #d2d2d2; background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/e/e5/Green_tick_pointed.svg/2000px-Green_tick_pointed.svg.png); background-size: 35px 38px; background-repeat: no-repeat; background-size: 35px 35px; position: relative;
}
/* .option-input:not(:checked) { width: 40px; height: 40px; position: absolute; backdround-color:red; display: inline-block; font-size: 26.66667px; text-align: center; line-height: 1010px;
} */
.option-input:checked::after { -webkit-animation: click-wave 0.65s; -moz-animation: click-wave 0.65s; animation: click-wave 0.65s; background: #d2d2d2; content: ''; display: block; position: relative; z-index: 100; background-size:0px 0px;
}
.option-input.radio { border-radius: 50%; }
.option-input.radio::after { border-radius: 50%; }
@-webkit-keyframes
click-wave { 0% { width: 40px; height: 40px; opacity: 0.35; position: relative;
} 100% { width: 200px; height: 200px; margin-left: -80px; margin-top: -80px; opacity: 0.0;
}
}
@-moz-keyframes
click-wave { 0% { width: 40px; height: 40px; opacity: 0.35; position: relative;
} 100% { width: 200px; height: 200px; margin-left: -80px; margin-top: -80px; opacity: 0.0;
}
}
@-o-keyframes
click-wave { 0% { width: 40px; height: 40px; opacity: 0.35; position: relative;
} 100% { width: 200px; height: 200px; margin-left: -80px; margin-top: -80px; opacity: 0.0;
}
}
@keyframes
click-wave { 0% { width: 40px; height: 40px; opacity: 0.35; position: relative;
} 100% { width: 200px; height: 200px; margin-left: -80px; margin-top: -80px; opacity: 0.0;
}
}
Developer | Anton |
Username | antonandoff |
Uploaded | January 11, 2023 |
Rating | 3 |
Size | 2,088 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 |
Angular.tile version 3 | 3,114 Kb |
Errors | 2,628 Kb |
Select search v1.0 | 3,002 Kb |
VE | 2,791 Kb |
Angular.tile version 2 | 2,283 Kb |
Angular.tile | 1,854 Kb |
Success bubble | 2,198 Kb |
VE_2 | 2,708 Kb |
VE_webianr | 2,151 Kb |
Pseudo spinner | 1,626 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 |
Scroll Arrow | Robooneus | 4,437 Kb |
Polygon Logo in CSS | Kai | 3,412 Kb |
Lecture 1 | Law | 0 Kb |
Addthis_button | Esambino | 1,691 Kb |
ABVI Menu Discarded | Overdrivemachines | 3,607 Kb |
Two Element Typeface | Chrisota | 4,942 Kb |
IE flex collapse bug fix | Rowno | 2,678 Kb |
SVG Scalable Text | Said_FD | 1,451 Kb |
A Pen by Jason Kinney | Jason-kinney | 1,980 Kb |
Simple search using AngularJS | Haykou | 1,802 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!