From 14d7f0976c46b1f9c746bd9a94c329d5713c1eeb Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Fri, 2 Jan 2026 16:36:40 +0300 Subject: [PATCH] feat(app): add styles for better optimized transitions --- src/app/styles/app.css | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/app/styles/app.css b/src/app/styles/app.css index ee2d8d5..f574f19 100644 --- a/src/app/styles/app.css +++ b/src/app/styles/app.css @@ -118,4 +118,23 @@ body { @apply bg-background text-foreground; } -} \ No newline at end of file +} + +/* 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); +}