iconflow 1.2.1 → 1.2.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/dist/index.css +5 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/styles.css/styles.css +80 -16
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -77,7 +77,7 @@ var AnimatedIcon = ({
|
|
|
77
77
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
78
78
|
"span",
|
|
79
79
|
{
|
|
80
|
-
className: `iconflow-${animationType} ${isTriggered ? "iconflow-active" : ""} ${className}`.trim(),
|
|
80
|
+
className: `iconflow-wrapper iconflow-${animationType} ${isTriggered ? "iconflow-active" : ""} ${className}`.trim(),
|
|
81
81
|
style: { "--iconflow-speed": `${speed}s` },
|
|
82
82
|
...handlers[triggerType]
|
|
83
83
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -40,7 +40,7 @@ var AnimatedIcon = ({
|
|
|
40
40
|
return /* @__PURE__ */ React.createElement(
|
|
41
41
|
"span",
|
|
42
42
|
{
|
|
43
|
-
className: `iconflow-${animationType} ${isTriggered ? "iconflow-active" : ""} ${className}`.trim(),
|
|
43
|
+
className: `iconflow-wrapper iconflow-${animationType} ${isTriggered ? "iconflow-active" : ""} ${className}`.trim(),
|
|
44
44
|
style: { "--iconflow-speed": `${speed}s` },
|
|
45
45
|
...handlers[triggerType]
|
|
46
46
|
},
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/* WRAPPER */
|
|
2
|
+
.iconflow-wrapper {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
}
|
|
7
|
+
|
|
1
8
|
/* SHAKE */
|
|
2
9
|
.iconflow-shake.iconflow-active {
|
|
3
10
|
animation: iconflow-shake calc(0.5s / var(--iconflow-speed)) ease-in-out;
|
|
@@ -30,35 +37,92 @@
|
|
|
30
37
|
|
|
31
38
|
/* KEYFRAMES */
|
|
32
39
|
@keyframes iconflow-shake {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
40
|
+
|
|
41
|
+
0%,
|
|
42
|
+
100% {
|
|
43
|
+
transform: rotate(0deg);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
25% {
|
|
47
|
+
transform: rotate(-15deg);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
75% {
|
|
51
|
+
transform: rotate(15deg);
|
|
52
|
+
}
|
|
36
53
|
}
|
|
37
54
|
|
|
38
55
|
@keyframes iconflow-spin {
|
|
39
|
-
from {
|
|
40
|
-
|
|
56
|
+
from {
|
|
57
|
+
transform: rotate(0deg);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
to {
|
|
61
|
+
transform: rotate(360deg);
|
|
62
|
+
}
|
|
41
63
|
}
|
|
42
64
|
|
|
43
65
|
@keyframes iconflow-bounce {
|
|
44
|
-
|
|
45
|
-
|
|
66
|
+
|
|
67
|
+
0%,
|
|
68
|
+
100% {
|
|
69
|
+
transform: translateY(0);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
50% {
|
|
73
|
+
transform: translateY(-6px);
|
|
74
|
+
}
|
|
46
75
|
}
|
|
47
76
|
|
|
48
77
|
@keyframes iconflow-swing {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
78
|
+
|
|
79
|
+
0%,
|
|
80
|
+
100% {
|
|
81
|
+
transform: rotate(0deg);
|
|
82
|
+
transform-origin: top center;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
25% {
|
|
86
|
+
transform: rotate(15deg);
|
|
87
|
+
transform-origin: top center;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
75% {
|
|
91
|
+
transform: rotate(-15deg);
|
|
92
|
+
transform-origin: top center;
|
|
93
|
+
}
|
|
52
94
|
}
|
|
53
95
|
|
|
54
96
|
@keyframes iconflow-pulse {
|
|
55
|
-
|
|
56
|
-
|
|
97
|
+
|
|
98
|
+
0%,
|
|
99
|
+
100% {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
transform: scale(1);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
50% {
|
|
105
|
+
opacity: 0.6;
|
|
106
|
+
transform: scale(0.9);
|
|
107
|
+
}
|
|
57
108
|
}
|
|
58
109
|
|
|
59
110
|
@keyframes iconflow-heartbeat {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
111
|
+
|
|
112
|
+
0%,
|
|
113
|
+
100% {
|
|
114
|
+
transform: scale(1);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
25% {
|
|
118
|
+
transform: scale(1.3);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
50% {
|
|
122
|
+
transform: scale(1);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
75% {
|
|
126
|
+
transform: scale(1.2);
|
|
127
|
+
}
|
|
64
128
|
}
|