@pablo-v/pixel-icons 1.3.1 → 1.3.2
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/README.md +1 -1
- package/dist/pixel-icons.css +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ All brand names and logos are trademarks of their respective owners. These pixel
|
|
|
26
26
|
|
|
27
27
|
## Animated icons
|
|
28
28
|
|
|
29
|
-
`SpinnerIcon`, `HourglassIcon`, `TypingIcon` and the other animated icons loop frame by frame. Set `--pxl-icon-duration` to change the speed; under `prefers-reduced-motion` they rest on their first frame.
|
|
29
|
+
`SpinnerIcon`, `HourglassIcon`, `TypingIcon` and the other animated icons loop frame by frame only while hovered. They return to their first frame when the pointer leaves. Set `--pxl-icon-duration` to change the speed; under `prefers-reduced-motion` they rest on their first frame.
|
|
30
30
|
|
|
31
31
|
```tsx
|
|
32
32
|
<SpinnerIcon label="Loading" style={{ '--pxl-icon-duration': '1200ms' } as React.CSSProperties} />;
|
package/dist/pixel-icons.css
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
overflow: hidden;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.pxl-icon-frames {
|
|
11
|
+
.pxl-icon--animated:hover .pxl-icon-frames {
|
|
12
12
|
animation: pxl-icon-frames var(--pxl-icon-duration) steps(var(--pxl-icon-frames), end) infinite;
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
@media (prefers-reduced-motion: reduce) {
|
|
22
|
-
.pxl-icon-frames {
|
|
22
|
+
.pxl-icon--animated:hover .pxl-icon-frames {
|
|
23
23
|
animation: none;
|
|
24
24
|
}
|
|
25
25
|
}
|