Skip to content

Commit

Permalink
Feat: Motion safe animations (#6739)
Browse files Browse the repository at this point in the history
* fix: motion safe animations

* feat: smooth scroll behavior in article
  • Loading branch information
canerakdas authored May 28, 2024
1 parent c706bf0 commit 1c4334f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions layouts/layouts.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
bg-gradient-subtle
p-12
grid-in-[main]
motion-safe:scroll-smooth
dark:bg-gradient-subtle-dark
xl:px-18
xs:bg-none
Expand Down
6 changes: 3 additions & 3 deletions styles/base.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
* {
@apply subpixel-antialiased
transition-colors;
motion-safe:transition-colors;
}

html,
Expand All @@ -10,10 +10,10 @@ body {
}

body {
@apply scroll-smooth
bg-white
@apply bg-white
font-open-sans
text-neutral-950
motion-safe:scroll-smooth
dark:bg-neutral-950
dark:text-white;
}

0 comments on commit 1c4334f

Please sign in to comment.