fix(a11y/theme): disable transitions if user prefers reduced motion

pull/2766/head
Divyansh Singh 1 year ago
parent 436e99a594
commit fc5092fb65

@ -1,3 +1,17 @@
@media (prefers-reduced-motion: reduce) {
*,
::before,
::after {
animation-delay: -1ms !important;
animation-duration: 1ms !important;
animation-iteration-count: 1 !important;
background-attachment: initial !important;
scroll-behavior: auto !important;
transition-duration: 0s !important;
transition-delay: 0s !important;
}
}
*,
::before,
::after {

Loading…
Cancel
Save