forked from loadingio/css-spinner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid.html
105 lines (105 loc) · 1.99 KB
/
grid.html
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<div class="lds-css">
<div style="width:100%;height:100%" class="lds-grid">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<style type="text/css">@-webkit-keyframes lds-grid {
0% {
opacity: 1;
}
50% {
opacity: 0.5;
}
100% {
opacity: 1;
}
}
@keyframes lds-grid {
0% {
opacity: 1;
}
50% {
opacity: 0.5;
}
100% {
opacity: 1;
}
}
.lds-grid {
position: relative;
}
.lds-grid div {
position: absolute;
width: 32px;
height: 32px;
border-radius: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
-webkit-animation: lds-grid linear 1s infinite;
animation: lds-grid linear 1s infinite;
}
.lds-grid div:nth-child(1),
.lds-grid div:nth-child(6),
.lds-grid div:nth-child(8) {
-webkit-animation-delay: -0.666s;
animation-delay: -0.666s;
}
.lds-grid div:nth-child(2),
.lds-grid div:nth-child(5),
.lds-grid div:nth-child(7) {
-webkit-animation-delay: -0.333s;
animation-delay: -0.333s;
}
.lds-grid div:nth-child(1),
.lds-grid div:nth-child(2),
.lds-grid div:nth-child(3) {
top: 50px;
}
.lds-grid div:nth-child(4),
.lds-grid div:nth-child(5),
.lds-grid div:nth-child(6) {
top: 100px;
}
.lds-grid div:nth-child(7),
.lds-grid div:nth-child(8),
.lds-grid div:nth-child(9) {
top: 150px;
}
.lds-grid div:nth-child(1),
.lds-grid div:nth-child(4),
.lds-grid div:nth-child(7) {
left: 50px;
}
.lds-grid div:nth-child(2),
.lds-grid div:nth-child(5),
.lds-grid div:nth-child(8) {
left: 100px;
}
.lds-grid div:nth-child(3),
.lds-grid div:nth-child(6),
.lds-grid div:nth-child(9) {
left: 150px;
}
.lds-grid div:nth-child(1),
.lds-grid div:nth-child(6),
.lds-grid div:nth-child(8) {
background: #ffffff;
}
.lds-grid div:nth-child(2),
.lds-grid div:nth-child(4),
.lds-grid div:nth-child(9) {
background: #ffffff;
}
.lds-grid div:nth-child(3),
.lds-grid div:nth-child(5),
.lds-grid div:nth-child(7) {
background: #ffffff;
}
</style></div>