@human-synthesis/norns-ui 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/styles/atoms.css +6 -1
package/package.json
CHANGED
package/src/styles/atoms.css
CHANGED
|
@@ -32,11 +32,16 @@
|
|
|
32
32
|
background-color: var(--color-bg);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
/* Respect prefers-reduced-motion without nuking decorative animations
|
|
36
|
+
* entirely: cap iterations to 1 (so infinite loops like the shiny
|
|
37
|
+
* sweep, sparkle, gradient shift play once and stop instead of
|
|
38
|
+
* looping), and shrink incidental transitions. Finite animations
|
|
39
|
+
* (ripple, copy-pop, toast-in, banner-in) keep their natural duration
|
|
40
|
+
* so users still see the state change they signal. */
|
|
35
41
|
@media (prefers-reduced-motion: reduce) {
|
|
36
42
|
*,
|
|
37
43
|
*::before,
|
|
38
44
|
*::after {
|
|
39
|
-
animation-duration: 0.01ms !important;
|
|
40
45
|
animation-iteration-count: 1 !important;
|
|
41
46
|
transition-duration: 0.01ms !important;
|
|
42
47
|
scroll-behavior: auto !important;
|