feat(app): add styles for better optimized transitions
Some checks failed
Lint / Lint Code (push) Failing after 7m18s
Test / Svelte Checks (push) Failing after 7m13s

This commit is contained in:
Ilia Mashkov
2026-01-02 16:36:40 +03:00
parent 98febdc24c
commit 14d7f0976c

View File

@@ -118,4 +118,23 @@
body { body {
@apply bg-background text-foreground; @apply bg-background text-foreground;
} }
} }
/* Global utility - useful across your app */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* Performance optimization for collapsible elements */
[data-state="open"] {
will-change: height;
}
/* Smooth focus transitions - good globally */
.peer:focus-visible ~ * {
transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}