feat(ui): add breathing animation to upload icon

This commit is contained in:
yiling
2026-05-27 10:19:42 +08:00
parent 331899f0e4
commit ebd32923b9
3 changed files with 52 additions and 21 deletions
+13
View File
@@ -98,6 +98,19 @@
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
--animate-upload-breathing: upload-breathing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
@keyframes upload-breathing {
0% {
filter: drop-shadow(0 0 1px rgb(var(--primary)));
transform: scale(0.95);
}
100% {
filter: drop-shadow(0 0 2px rgb(var(--primary))) drop-shadow(0 0 4px rgb(var(--primary)));
transform: scale(1.05);
}
}
}
@layer base {