mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
61 lines
934 B
HTML
61 lines
934 B
HTML
<input class="checkbox" type="checkbox">
|
|
|
|
<style>
|
|
/* From Uiverse.io by Smit-Prajapati - Tags: checkbox, cool checkbox, check */
|
|
.checkbox {
|
|
appearance: none;
|
|
width: 30px;
|
|
aspect-ratio: 1;
|
|
border-radius: 8px;
|
|
border: 2px solid black;
|
|
position: relative;
|
|
transition: all 0.2s ease-in-out;
|
|
}
|
|
|
|
.checkbox::before {
|
|
font-family: "Quicksand", sans-serif;
|
|
position: absolute;
|
|
bottom: -4px;
|
|
left: 1px;
|
|
content: "✔";
|
|
font-size: 40px;
|
|
color: rgb(255, 153, 0);
|
|
transform: scale(0);
|
|
transition: all 0.2s ease-in-out;
|
|
}
|
|
|
|
.checkbox:checked::before {
|
|
animation: zoom 0.5s ease-in-out;
|
|
transform: scale(1);
|
|
}
|
|
|
|
@keyframes zoom {
|
|
0% {
|
|
transform: scale(0);
|
|
}
|
|
|
|
20% {
|
|
transform: scale(1.5);
|
|
}
|
|
|
|
40% {
|
|
transform: scale(0.5);
|
|
}
|
|
|
|
50% {
|
|
transform: scale(1);
|
|
}
|
|
|
|
70% {
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
90% {
|
|
transform: scale(0.8);
|
|
}
|
|
|
|
100% {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
</style>
|