Skip to content

Commit 1a9ead3

Browse files
committed
fix: replace invalid @Keyframes * with proper reduced-motion media query
1 parent e1adc4b commit 1a9ead3

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

styles/global.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ h1, h2, h3, h4, h5, h6 {
115115
transition-timing-function: ease;
116116
}
117117

118-
/* But not for animations */
119-
@keyframes * {
120-
transition: none !important;
118+
/* Reduced motion: disable all animations */
119+
@media (prefers-reduced-motion: reduce) {
120+
*, *::before, *::after {
121+
animation-duration: 0.01ms !important;
122+
animation-iteration-count: 1 !important;
123+
transition-duration: 0.01ms !important;
124+
}
121125
}

0 commit comments

Comments
 (0)