Skip to content

Commit 0b8fab7

Browse files
committed
feat: add smooth scrolling
1 parent 71620cd commit 0b8fab7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

sass/_body.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,16 @@
7979
}
8080
}
8181

82+
@media screen and (prefers-reduced-motion: reduce) {
83+
html {
84+
scroll-behavior: auto;
85+
}
86+
}
87+
88+
html {
89+
scroll-behavior: smooth;
90+
}
91+
8292
body {
8393
font-family: 'figtree';
8494

0 commit comments

Comments
 (0)