Reduce motion when the user requests it

This commit is contained in:
Jake Howard 2022-09-23 17:05:18 +01:00
parent 18ac4f9fbb
commit c18e408db7
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -32,6 +32,17 @@ body {
background-color: $dark-mode-background;
color: $dark-mode-text;
}
@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;
}
}
}
main {