disable animation/transition if user prefers reduced motion
This commit is contained in:
parent
8e9ee2abb7
commit
d4633b327a
1 changed files with 11 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue