diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-17 23:08:44 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-17 23:08:44 +0100 |
| commit | d42f9e348261fd1738e7977db89b06007ec8da10 (patch) | |
| tree | 9aa456ecc1e5a51c64def22fd6c020aaa0d45536 /src/styles | |
| parent | 24d617d2ace0d68ee559ec34e888bf34493b9cf9 (diff) | |
feat: add a setting to disable animations and transitions
Some users may not know the reduced motion settings, so I provide an
option directly on the website to disable animations.
Diffstat (limited to 'src/styles')
| -rw-r--r-- | src/styles/base/_helpers.scss | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/styles/base/_helpers.scss b/src/styles/base/_helpers.scss index 9fe2bd4..65f06d8 100644 --- a/src/styles/base/_helpers.scss +++ b/src/styles/base/_helpers.scss @@ -44,6 +44,14 @@ @include mix.motion("reduce") { * { + animation: none !important; + transition: none !important; + } +} + +[data-reduced-motion="true"] { + * { + animation: none !important; transition: none !important; } } |
