forked from jolaleye/cssfx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloader-grid.vue
59 lines (52 loc) · 929 Bytes
/
loader-grid.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<template>
<div class="dots">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</template>
<style scoped>
.dots {
width: 3em;
height: 3em;
display: grid;
grid-template-rows: repeat(3, 1fr);
grid-template-columns: repeat(3, 1fr);
justify-items: center;
align-items: center;
}
.dots > div {
width: 0.5em;
height: 0.5em;
background-color: #3cefff;
border-radius: 50%;
animation: fade 1.5s alternate ease-in-out infinite;
}
.dots > div:nth-of-type(2),
.dots > div:nth-of-type(4) {
animation-delay: 0.25s;
}
.dots > div:nth-of-type(3),
.dots > div:nth-of-type(5),
.dots > div:nth-of-type(7) {
animation-delay: 0.5s;
}
.dots > div:nth-of-type(6),
.dots > div:nth-of-type(8) {
animation-delay: 0.75s;
}
.dots > div:nth-of-type(9) {
animation-delay: 1s;
}
@keyframes fade {
to {
opacity: 0.2;
}
}
</style>