Skip to content

Commit

Permalink
feat(styles): manage animations by user settings (#1996)
Browse files Browse the repository at this point in the history
Co-authored-by: kseniyakuzina <[email protected]>
  • Loading branch information
kseniya57 and kseniyakuzina authored Dec 17, 2024
1 parent 03b5dbf commit 19ca365
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions styles/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,18 @@
:root:has(body.g-root_theme_dark-hc) {
color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
/* stylelint-disable-next-line declaration-no-important */
scroll-behavior: auto !important;
/* stylelint-disable-next-line declaration-no-important */
transition-duration: 0.001ms !important;
/* stylelint-disable-next-line declaration-no-important */
animation-duration: 0.001ms !important;
/* stylelint-disable-next-line declaration-no-important */
animation-iteration-count: 1 !important;
}
}

0 comments on commit 19ca365

Please sign in to comment.