Checkbox

Developer
Size
2,088 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 Anton on 11 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> <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;
}
}
Checkbox - Script Codes
Checkbox - Script Codes
Home Page Home
Developer Anton
Username antonandoff
Uploaded January 11, 2023
Rating 3
Size 2,088 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!

Anton (antonandoff) Script Codes
Create amazing Facebook ads 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!