Свой чекбокс
Стили
.box-label input[type="checkbox"] {
display: none;
}
.box-label {
display: inline-block;
margin: 5px;
cursor: pointer;
}
#checkbox:checked + .box::before {
content: "\f14a";
color: #2ebdbd;
animation: checkanimate 200ms;
}
.box::before {
content: "\f0c8";
font-family: "FontAwesome";
font-weight: normal;
font-style: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
margin-right: 5px;
width: 1em;
display: inline-block;
font-size: 1.6em;
vertical-align: top;
}
@keyframes checkanimate{
0% {transform: scale(0);}
90% {transform: scale(1.1);}
100% {transform: scale(1);}
}
Код HTML
<label class="box-label">
<input type="checkbox" id="checkbox">
<span class="box"></span>
</label>