disable animation/transition if user prefers reduced motion

This commit is contained in:
westtle 2024-02-07 10:16:05 +07:00
parent 8e9ee2abb7
commit d4633b327a

View file

@ -68,6 +68,17 @@
box-sizing: border-box;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
html { min-height: 100%; }
img,