Disable smooth scrolling for reduced motion preference

This commit is contained in:
Helen Chong 2024-06-11 02:03:25 +08:00
parent 9969d0e36f
commit b817f16013
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,9 @@
/* GENERAL STYLES */ /* GENERAL STYLES */
html { html {
@media (prefers-reduced-motion: no-preference) {
scroll-behavior: smooth; scroll-behavior: smooth;
} }
}
body { body {
display: flex; display: flex;