<label for="dinozavr">
<input type="checkbox" name="check" class="check">
ololo
<span></span>
</label>
label{
position: relative;
padding-left: 30px;
cursor: pointer;
}
.check {
display: none;
}
.check + span{
position: absolute;
left: 0;
width: 20px;
height: 20px;
border: 1px solid #CCB26E;
display: inline-block;
border-radius: 3px;
}
.check + span:before{
content: '';
position: absolute;
background: url('pic.svg');
width: 20px;
height: 20px;
background-repeat: no-repeat;
top: 1px;
right: 0;
left: 2px;
bottom: 0;
opacity: 0;
transition: opacity .3s ease-in-out;
}
.check:checked + span:before{
opacity: 1;
}
.check ~ span{
position: absolute;
left: 0;
width: 20px;
height: 20px;
border: 1px solid #CCB26E;
display: inline-block;
border-radius: 3px;
}
.check ~ span:before{
content: '';
position: absolute;
background: url('pic.svg');
width: 20px;
height: 20px;
background-repeat: no-repeat;
top: 1px;
right: 0;
left: 2px;
bottom: 0;
opacity: 0;
transition: opacity .3s ease-in-out;
}
.check:checked ~ span:before{
opacity: 1;
}