Skip to content

Commit 1c4334f

Browse files
authored
Feat: Motion safe animations (#6739)
* fix: motion safe animations * feat: smooth scroll behavior in article
1 parent c706bf0 commit 1c4334f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

layouts/layouts.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
bg-gradient-subtle
3030
p-12
3131
grid-in-[main]
32+
motion-safe:scroll-smooth
3233
dark:bg-gradient-subtle-dark
3334
xl:px-18
3435
xs:bg-none

styles/base.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
* {
22
@apply subpixel-antialiased
3-
transition-colors;
3+
motion-safe:transition-colors;
44
}
55

66
html,
@@ -10,10 +10,10 @@ body {
1010
}
1111

1212
body {
13-
@apply scroll-smooth
14-
bg-white
13+
@apply bg-white
1514
font-open-sans
1615
text-neutral-950
16+
motion-safe:scroll-smooth
1717
dark:bg-neutral-950
1818
dark:text-white;
1919
}

0 commit comments

Comments
 (0)