.checkbox1 {
position: relative;
top: 1px;
width: 27px;
height: 27px;
border: 1px solid #c8ccd4;
border-radius: 3px;
vertical-align: middle;
transition: background 0.1s ease;
cursor: pointer;
display: block;
}
.checkbox1:after {
content: '';
position: absolute;
top: 2px;
left: 8px;
width: 7px;
height: 14px;
opacity: 0;
transform: rotate(45deg) scale(0);
border-right: 2px solid #fff;
border-bottom: 2px solid #fff;
transition: all 0.3s ease;
transition-delay: 0.15s;
}
.label {
margin-left: 5px;
vertical-align: middle;
cursor: pointer;
}
#checkbox1:checked ~ .checkbox1 {
border-color: transparent;
background: #6871f1;
animation: jelly 0.6s ease;
}
#checkbox1:checked ~ .checkbox1:after {
opacity: 1;
transform: rotate(45deg) scale(1);
}
.container1 {
position: relative;
}
@keyframes jelly {
from {
transform: scale(1, 1);
}
30% {
transform: scale(1.25, 0.75);
}
40% {
transform: scale(0.75, 1.25);
}
50% {
transform: scale(1.15, 0.85);
}
65% {
transform: scale(0.95, 1.05);
}
75% {
transform: scale(1.05, 0.95);
}
to {
transform: scale(1, 1);
}
}
.hidden-xs-up1 {
display: none!important;
}