feat(app): add styles for better optimized transitions
This commit is contained in:
@@ -119,3 +119,22 @@
|
|||||||
@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);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user