-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
143 lines (129 loc) · 2.62 KB
/
test.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body {
background: #000;
}
.box {
width: 200px;
height: 200px;
display: flex;
justify-content: center;
align-items: center;
}
.loader {
width: 100px;
height: 150px;
position: relative;
}
.loader::before {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100px;
height: 5px;
border-radius: 5px;
background: #FFF;
}
.loader::after {
content: '';
width: 50px;
height: 50px;
border-radius: 100%;
background: #FF3000;
position: absolute;
left: 25px;
animation: bound 0.5s infinite ease-in alternate;
}
@keyframes bound {
0% {
transform: translateY(0px);
}
80% {
transform: translateY(80px) scale(0.8, 1.3);
}
100% {
transform: translateY(115px) scale(1.2, 0.4);
}
}
.loading {
width: 15px;
height: 15px;
border-radius: 10px;
display: block;
margin:15px auto;
box-shadow:
-60px -15px #FFF,
-30px -15px #AAA,
0 -15px #AAA,
30px -15px #AAA,
60px -15px #AAA;
animation: UpDown 2s infinite linear;
}
@keyframes UpDown {
0%, 100% {
box-shadow:
-60px -15px #FFF,
-30px -15px #AAA,
0 -15px #AAA,
30px -15px #AAA,
60px -15px #AAA;
}
18% {
box-shadow:
-60px -30px #FFF,
-30px -15px #AAA,
0 -15px #AAA,
30px -15px #AAA,
60px -15px #AAA;
}
36% {
box-shadow:
-60px -15px #AAA,
-30px -30px #FFF,
0 -15px #AAA,
30px -15px #AAA,
60px -15px #AAA;
}
54% {
box-shadow:
-60px -15px #AAA,
-30px -15px #AAA,
0 -30px #FFF,
30px -15px #AAA,
60px -15px #AAA;
}
72% {
box-shadow:
-60px -15px #AAA,
-30px -15px #AAA,
0 -15px #AAA,
30px -30px #FFF,
60px -15px #AAA;
}
90% {
box-shadow:
-60px -15px #AAA,
-30px -15px #AAA,
0 -15px #AAA,
30px -15px #AAA,
60px -30px #FFF;
}
}
</style>
</head>
<body>
<div class="box">
<span class="loader"></span>
</div>
<div class="box">
<span class="loading"></span>
</div>
</body>
</html>