From 19ca365acde4fb5b467e9ac36a373a6ea5def728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D1=81=D0=B5=D0=BD=D0=B8=D1=8F?= <31247233+kseniya57@users.noreply.github.com> Date: Tue, 17 Dec 2024 06:58:42 +0300 Subject: [PATCH] feat(styles): manage animations by user settings (#1996) Co-authored-by: kseniyakuzina --- styles/styles.scss | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/styles/styles.scss b/styles/styles.scss index 7783e114d..606042482 100644 --- a/styles/styles.scss +++ b/styles/styles.scss @@ -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; + } +}