galaxy/Checkboxes/andrew-demchenk0_happy-vampirebat-41.html

40 lines
884 B
HTML

<label class="container">
<input type="checkbox">
<svg id="Layer_1" version="1.0" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M16.4,4C14.6,4,13,4.9,12,6.3C11,4.9,9.4,4,7.6,4C4.5,4,2,6.5,2,9.6C2,14,12,22,12,22s10-8,10-12.4C22,6.5,19.5,4,16.4,4z"></path></svg>
</label>
<style>
/* From Uiverse.io by andrew-demchenk0 - Tags: red, checkbox, like, heart */
.container input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
.container {
display: block;
position: relative;
cursor: pointer;
user-select: none;
}
.container svg {
position: relative;
top: 0;
left: 0;
height: 50px;
width: 50px;
transition: all 0.3s;
fill: #666;
}
.container svg:hover {
transform: scale(1.1);
}
.container input:checked ~ svg {
fill: #E3474F;
}
</style>