UNPKG

1.03 kBSCSSView Raw
1@if $enable-transitions and $enable-important {
2
3/**
4 * Reduce Motion Features
5 */
6
7
8 // Based on :
9 // - sanitize.css v12.0.1 | CC0 1.0 Universal | github.com/csstools/sanitize.css
10 // ––––––––––––––––––––
11
12 // 1. Remove animations when motion is reduced (opinionated)
13 // 2. Remove fixed background attachments when motion is reduced (opinionated)
14 // 3. Remove timed scrolling behaviors when motion is reduced (opinionated)
15 // 4. Remove transitions when motion is reduced (opinionated)
16 @media (prefers-reduced-motion: reduce) {
17 *:not([aria-busy="true"]),
18 :not([aria-busy="true"])::before,
19 :not([aria-busy="true"])::after {
20 background-attachment: initial !important; // 2
21 animation-duration: 1ms !important; // 1
22 animation-delay: -1ms !important; // 1
23 animation-iteration-count: 1 !important; // 1
24 scroll-behavior: auto !important; // 3
25 transition-delay: 0s !important; // 4
26 transition-duration: 0s !important; // 4
27 }
28 }
29}