Feature(custom): add advanced animation

This commit is contained in:
Kuingsmile
2026-01-15 15:32:37 +08:00
parent 3775e1ff1a
commit 0fac820d31
18 changed files with 298 additions and 326 deletions

View File

@@ -134,14 +134,19 @@
border-radius: 50%;
width: 20px;
height: 20px;
background: #ffffff;
box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
transition: all 0.3s ease;
background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
box-shadow:
0 2px 6px rgb(0 0 0 / 20%),
0 1px 2px rgb(0 0 0 / 10%);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
content: '';
}
.switch-input:checked + .switch-slider {
background: var(--color-accent);
box-shadow:
inset 0 1px 3px rgb(0 0 0 / 10%),
0 2px 8px rgb(64 158 255 / 30%);
}
.switch-input:checked + .switch-slider::before {