Skip to content

Commit 017abd1

Browse files
Add smooth scroll
1 parent 4711908 commit 017abd1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/styles/_base.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131

3232
html {
3333
--scale-inline: 1;
34+
scroll-behavior: smooth;
35+
36+
@media (prefers-reduced-motion: reduce) {
37+
scroll-behavior: auto;
38+
}
3439
}
3540

3641
html[dir="rtl"] {

0 commit comments

Comments
 (0)