/* Hide the default checkbox */
.container10 input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
.container10 {
display: block;
position: relative;
cursor: pointer;
font-size: 20px;
user-select: none;
}
/* Create a custom checkbox */
.checkmark10 {
position: relative;
top: 0;
left: 0;
height: 1.4em;
width: 1.4em;
border: 2px solid #2196F3;
border-radius: 1rem 0rem 1rem;
transform: rotate(45deg);
transition: all .5s ease-in-out;
}
/* When the checkbox is checked, add a blue background */
.container10 input:checked ~ .checkmark10 {
box-shadow: 0px 0px 40px 5px #2196F3;
border-radius: 1rem 0rem 1rem;
background-color: #2195f31f;
}
/* Create the checkmark10/indicator (hidden when not checked) */
.checkmark10:after {
content: "";
position: absolute;
display: none;
}
/* Show the checkmark10 when checked */
.container10 input:checked ~ .checkmark10:after {
display: block;
}
/* Style the checkmark10/indicator */
.container10 .checkmark10:after {
left: 0.35em;
top: 0.20em;
width: 0.25em;
height: 0.5em;
border: solid #2196F3;
border-width: 0 0.15em 0.15em 0;
transform: rotate(-5deg);
animation: upAnimate 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@keyframes upAnimate {
from {
transform: translate(-20px, -20px) rotate(-5deg);
opacity: 0;
}
to {
transform: translate(0, 0) rotate(-5deg);
opacity: 1;
}
}