Skip to content

Commit db286d6

Browse files
committed
Add a new loading animation what called circles
1 parent e08d90d commit db286d6

File tree

1 file changed

+112
-0
lines changed

1 file changed

+112
-0
lines changed

src/components/InfiniteLoading.vue

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,118 @@
228228
animation: linear icon-rotating .85s infinite;
229229
}
230230
231+
.icon-circles{
232+
position: relative;
233+
&:before{
234+
@size: 5px;
235+
@radius: 12px;
236+
@shallow: 8%;
237+
@c-base: #505050;
238+
content: '';
239+
position: absolute;
240+
left: 50%;
241+
top: 50%;
242+
margin-top: -@size/2;
243+
margin-left: -@size/2;
244+
width: @size;
245+
height: @size;
246+
border-radius: 50%;
247+
animation: linear icon-circles .75s infinite;
248+
@keyframes icon-circles{
249+
0%{
250+
box-shadow: 0 -@radius 0 @c-base,
251+
@radius * 0.71 -@radius * 0.71 0 lighten(@c-base, @shallow),
252+
@radius 0 0 lighten(@c-base, @shallow * 2),
253+
@radius * 0.71 @radius * 0.71 0 lighten(@c-base, @shallow * 3),
254+
0 @radius 0 lighten(@c-base, @shallow * 4),
255+
-@radius * 0.71 @radius * 0.71 0 lighten(@c-base, @shallow * 5),
256+
-@radius 0 0 lighten(@c-base, @shallow * 6),
257+
-@radius * 0.71 -@radius * 0.71 0 lighten(@c-base, @shallow * 7);
258+
}
259+
12.5%{
260+
box-shadow: 0 -@radius 0 lighten(@c-base, @shallow * 7),
261+
@radius * 0.71 -@radius * 0.71 0 @c-base,
262+
@radius 0 0 lighten(@c-base, @shallow * 1),
263+
@radius * 0.71 @radius * 0.71 0 lighten(@c-base, @shallow * 2),
264+
0 @radius 0 lighten(@c-base, @shallow * 3),
265+
-@radius * 0.71 @radius * 0.71 0 lighten(@c-base, @shallow * 4),
266+
-@radius 0 0 lighten(@c-base, @shallow * 5),
267+
-@radius * 0.71 -@radius * 0.71 0 lighten(@c-base, @shallow * 6);
268+
}
269+
25%{
270+
box-shadow: 0 -@radius 0 lighten(@c-base, @shallow * 6),
271+
@radius * 0.71 -@radius * 0.71 0 lighten(@c-base, @shallow * 7),
272+
@radius 0 0 @c-base,
273+
@radius * 0.71 @radius * 0.71 0 lighten(@c-base, @shallow * 1),
274+
0 @radius 0 lighten(@c-base, @shallow * 2),
275+
-@radius * 0.71 @radius * 0.71 0 lighten(@c-base, @shallow * 3),
276+
-@radius 0 0 lighten(@c-base, @shallow * 4),
277+
-@radius * 0.71 -@radius * 0.71 0 lighten(@c-base, @shallow * 5);
278+
}
279+
37.5%{
280+
box-shadow: 0 -@radius 0 lighten(@c-base, @shallow * 5),
281+
@radius * 0.71 -@radius * 0.71 0 lighten(@c-base, @shallow * 6),
282+
@radius 0 0 lighten(@c-base, @shallow * 7),
283+
@radius * 0.71 @radius * 0.71 0 @c-base,
284+
0 @radius 0 lighten(@c-base, @shallow * 1),
285+
-@radius * 0.71 @radius * 0.71 0 lighten(@c-base, @shallow * 2),
286+
-@radius 0 0 lighten(@c-base, @shallow * 3),
287+
-@radius * 0.71 -@radius * 0.71 0 lighten(@c-base, @shallow * 4);
288+
}
289+
50%{
290+
box-shadow: 0 -@radius 0 lighten(@c-base, @shallow * 4),
291+
@radius * 0.71 -@radius * 0.71 0 lighten(@c-base, @shallow * 5),
292+
@radius 0 0 lighten(@c-base, @shallow * 6),
293+
@radius * 0.71 @radius * 0.71 0 lighten(@c-base, @shallow * 7),
294+
0 @radius 0 @c-base,
295+
-@radius * 0.71 @radius * 0.71 0 lighten(@c-base, @shallow * 1),
296+
-@radius 0 0 lighten(@c-base, @shallow * 2),
297+
-@radius * 0.71 -@radius * 0.71 0 lighten(@c-base, @shallow * 3);
298+
}
299+
62.5%{
300+
box-shadow: 0 -@radius 0 lighten(@c-base, @shallow * 3),
301+
@radius * 0.71 -@radius * 0.71 0 lighten(@c-base, @shallow * 4),
302+
@radius 0 0 lighten(@c-base, @shallow * 5),
303+
@radius * 0.71 @radius * 0.71 0 lighten(@c-base, @shallow * 6),
304+
0 @radius 0 lighten(@c-base, @shallow * 7),
305+
-@radius * 0.71 @radius * 0.71 0 @c-base,
306+
-@radius 0 0 lighten(@c-base, @shallow * 1),
307+
-@radius * 0.71 -@radius * 0.71 0 lighten(@c-base, @shallow * 2);
308+
}
309+
75%{
310+
box-shadow: 0 -@radius 0 lighten(@c-base, @shallow * 2),
311+
@radius * 0.71 -@radius * 0.71 0 lighten(@c-base, @shallow * 3),
312+
@radius 0 0 lighten(@c-base, @shallow * 4),
313+
@radius * 0.71 @radius * 0.71 0 lighten(@c-base, @shallow * 5),
314+
0 @radius 0 lighten(@c-base, @shallow * 6),
315+
-@radius * 0.71 @radius * 0.71 0 lighten(@c-base, @shallow * 7),
316+
-@radius 0 0 @c-base,
317+
-@radius * 0.71 -@radius * 0.71 0 lighten(@c-base, @shallow * 1);
318+
}
319+
87.5%{
320+
box-shadow: 0 -@radius 0 lighten(@c-base, @shallow * 1),
321+
@radius * 0.71 -@radius * 0.71 0 lighten(@c-base, @shallow * 2),
322+
@radius 0 0 lighten(@c-base, @shallow * 3),
323+
@radius * 0.71 @radius * 0.71 0 lighten(@c-base, @shallow * 4),
324+
0 @radius 0 lighten(@c-base, @shallow * 5),
325+
-@radius * 0.71 @radius * 0.71 0 lighten(@c-base, @shallow * 6),
326+
-@radius 0 0 lighten(@c-base, @shallow * 7),
327+
-@radius * 0.71 -@radius * 0.71 0 @c-base;
328+
}
329+
100%{
330+
box-shadow: 0 -@radius 0 @c-base,
331+
@radius * 0.71 -@radius * 0.71 0 lighten(@c-base, @shallow),
332+
@radius 0 0 lighten(@c-base, @shallow * 2),
333+
@radius * 0.71 @radius * 0.71 0 lighten(@c-base, @shallow * 3),
334+
0 @radius 0 lighten(@c-base, @shallow * 4),
335+
-@radius * 0.71 @radius * 0.71 0 lighten(@c-base, @shallow * 5),
336+
-@radius 0 0 lighten(@c-base, @shallow * 6),
337+
-@radius * 0.71 -@radius * 0.71 0 lighten(@c-base, @shallow * 7);
338+
}
339+
}
340+
}
341+
}
342+
231343
.infinite-loading-container{
232344
clear: both;
233345
text-align: center;

0 commit comments

Comments
 (0)