@jis3r/icons 1.25.2 → 1.26.0
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/icons/users.svelte +88 -19
- package/package.json +1 -1
package/dist/icons/users.svelte
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { spring } from 'svelte/motion';
|
|
3
|
-
|
|
4
2
|
/**
|
|
5
3
|
* @typedef {Object} Props
|
|
6
4
|
* @property {string} [color]
|
|
@@ -19,19 +17,12 @@
|
|
|
19
17
|
class: className = ''
|
|
20
18
|
} = $props();
|
|
21
19
|
|
|
22
|
-
const animatedX = spring(0, {
|
|
23
|
-
stiffness: 200,
|
|
24
|
-
damping: 13
|
|
25
|
-
});
|
|
26
|
-
|
|
27
20
|
function handleMouseEnter() {
|
|
28
21
|
isHovered = true;
|
|
29
|
-
animatedX.set(-6);
|
|
30
22
|
|
|
31
23
|
setTimeout(() => {
|
|
32
24
|
isHovered = false;
|
|
33
|
-
|
|
34
|
-
}, 300);
|
|
25
|
+
}, 600);
|
|
35
26
|
}
|
|
36
27
|
</script>
|
|
37
28
|
|
|
@@ -47,11 +38,12 @@
|
|
|
47
38
|
stroke-linecap="round"
|
|
48
39
|
stroke-linejoin="round"
|
|
49
40
|
class="users-icon"
|
|
41
|
+
class:animate={isHovered}
|
|
50
42
|
>
|
|
51
|
-
<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" />
|
|
52
|
-
<
|
|
53
|
-
<path d="M22 21v-2a4 4 0 0 0-3-3.87"
|
|
54
|
-
<
|
|
43
|
+
<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" class="users-path1" />
|
|
44
|
+
<path d="M16 3.128a4 4 0 0 1 0 7.744" class="users-path2" />
|
|
45
|
+
<path d="M22 21v-2a4 4 0 0 0-3-3.87" class="users-path3" />
|
|
46
|
+
<circle cx={9} cy={7} r={4} class="users-circle" />
|
|
55
47
|
</svg>
|
|
56
48
|
</div>
|
|
57
49
|
|
|
@@ -59,12 +51,89 @@
|
|
|
59
51
|
div {
|
|
60
52
|
display: inline-block;
|
|
61
53
|
}
|
|
62
|
-
|
|
63
|
-
|
|
54
|
+
|
|
55
|
+
.users-path1,
|
|
56
|
+
.users-path2,
|
|
57
|
+
.users-path3,
|
|
58
|
+
.users-circle {
|
|
59
|
+
transition: transform 0.6s ease-in-out;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.users-icon.animate .users-path1 {
|
|
63
|
+
animation: path1Bounce 0.6s ease-in-out;
|
|
64
|
+
animation-delay: 0.1s;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.users-icon.animate .users-path2 {
|
|
68
|
+
animation: path2Bounce 0.6s ease-in-out;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.users-icon.animate .users-path3 {
|
|
72
|
+
animation: path3Bounce 0.6s ease-in-out;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.users-icon.animate .users-circle {
|
|
76
|
+
animation: circleBounce 0.6s ease-in-out;
|
|
77
|
+
animation-delay: 0.1s;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@keyframes path1Bounce {
|
|
81
|
+
0% {
|
|
82
|
+
transform: translateY(0);
|
|
83
|
+
}
|
|
84
|
+
33% {
|
|
85
|
+
transform: translateY(2px);
|
|
86
|
+
}
|
|
87
|
+
66% {
|
|
88
|
+
transform: translateY(-2px);
|
|
89
|
+
}
|
|
90
|
+
100% {
|
|
91
|
+
transform: translateY(0);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@keyframes path2Bounce {
|
|
96
|
+
0% {
|
|
97
|
+
transform: translateY(0);
|
|
98
|
+
}
|
|
99
|
+
33% {
|
|
100
|
+
transform: translateY(4px);
|
|
101
|
+
}
|
|
102
|
+
66% {
|
|
103
|
+
transform: translateY(-2px);
|
|
104
|
+
}
|
|
105
|
+
100% {
|
|
106
|
+
transform: translateY(0);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@keyframes path3Bounce {
|
|
111
|
+
0% {
|
|
112
|
+
transform: translateY(0);
|
|
113
|
+
}
|
|
114
|
+
33% {
|
|
115
|
+
transform: translateY(2px);
|
|
116
|
+
}
|
|
117
|
+
66% {
|
|
118
|
+
transform: translateY(-2px);
|
|
119
|
+
}
|
|
120
|
+
100% {
|
|
121
|
+
transform: translateY(0);
|
|
122
|
+
}
|
|
64
123
|
}
|
|
65
124
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
125
|
+
@keyframes circleBounce {
|
|
126
|
+
0% {
|
|
127
|
+
transform: translateY(0);
|
|
128
|
+
}
|
|
129
|
+
33% {
|
|
130
|
+
transform: translateY(4px);
|
|
131
|
+
}
|
|
132
|
+
66% {
|
|
133
|
+
transform: translateY(-2px);
|
|
134
|
+
}
|
|
135
|
+
100% {
|
|
136
|
+
transform: translateY(0);
|
|
137
|
+
}
|
|
69
138
|
}
|
|
70
139
|
</style>
|