File tree Expand file tree Collapse file tree 1 file changed +24
-6
lines changed Expand file tree Collapse file tree 1 file changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ function onUpdateFavoriteTools() {
76
76
<h3 class =" mb-5px mt-25px font-500 text-neutral-400" >
77
77
{{ $t('home.categories.favoriteTools') }}
78
78
<c-tooltip :tooltip =" $t('home.categories.favoritesDndToolTip')" >
79
- <n-icon :component =" IconDragDrop" size =" 18" />
79
+ <n-icon :component =" IconDragDrop" size =" 18" class = " icon-wobble " />
80
80
</c-tooltip >
81
81
</h3 >
82
82
<Draggable
@@ -133,18 +133,36 @@ function onUpdateFavoriteTools() {
133
133
background-color : #ccc ;
134
134
border : 2px dashed #666 ;
135
135
box-shadow : 0 0 10px rgba (0 , 0 , 0 , 0.2 );
136
- transform : scale (1.1 );
137
- animation : ghost- favorites- draggable- animation 0.2s ease-out ;
136
+ animation : ghost- favorites- draggable- animation 0.1s ease-out ;
138
137
}
139
-
140
138
@keyframes ghost- favorites- draggable- animation {
141
139
0% {
142
140
opacity : 0 ;
143
- transform : scale (0.9 );
141
+ transform : scale (0.9 ) rotate (-1deg );
142
+ }
143
+ 50% {
144
+ opacity : 0.4 ;
145
+ transform : scale (1.0 ) rotate (2deg );
144
146
}
145
147
100% {
146
148
opacity : 0.4 ;
147
- transform : scale (1.0 );
149
+ transform : scale (1.0 ) rotate (-1deg );
150
+ }
151
+ }
152
+
153
+ .icon-wobble :hover {
154
+ transform : scale (1.3 );
155
+ animation : icon- wobble- animation 0.2s ease-in-out ;
156
+ }
157
+ @keyframes icon- wobble- animation {
158
+ 0% {
159
+ transform : scale (1.3 ) rotate (-10deg );
160
+ }
161
+ 50% {
162
+ transform : scale (1.3 ) rotate (20deg );
163
+ }
164
+ 100% {
165
+ transform : scale (1.3 ) rotate (-10deg );
148
166
}
149
167
}
150
168
</style >
You can’t perform that action at this time.
0 commit comments