-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloading.html
127 lines (112 loc) · 3.54 KB
/
loading.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
<!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>Loading</title>
<style>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
section {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #001d10;
animation: animateBackColor 10s linear infinite;
}
.loading {
position: relative;
width: 250px;
height: 250px;
}
@keyframes animateBackColor {
0% {
filter: hue-rotate(0deg);
}
100% {
filter: hue-rotate(360deg);
}
}
.loading .blocks {
position: absolute;
width: 8px;
height: 25px;
border-radius: 8px;
left: 50%;
background: #050c09;
transform: rotate(calc(18deg * (var(--i))));
transform-origin: 0 125px;
animation: animate 2s ease-in-out infinite;
animation-delay: calc(0.05s * var(--i));
}
@keyframes animate {
0%,
50% {
background: #050c09;
box-shadow: none;
}
50.01%,
100% {
background: #ffaaee;
box-shadow: 0 0 5px #ffaaee, 0 0 10px #ffaaee, 0 0 20px #ffaaee, 0 0 30px #ffaaee;
}
}
h3 {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-webkit-transform: translate(-50, -50%);
font-size: 2em;
letter-spacing: 2px;
animation: animateText 2s linear infinite;
color: #050c09;
animation-delay: -1s;
}
@keyframes animateText {
0%,
50% {
color: #050c09;
text-shadow: none;
}
50.01%,
100% {
color: #ffaaee;
text-shadow: 0 0 5px #ffaaee, 0 0 10px #ffaaee, 0 0 20px #ffaaee, 0 0 30px #ffaaee;
}
}
</style>
</head>
<body>
<section>
<div class="loading">
<div class="blocks" style="--i:1"></div>
<div class="blocks" style="--i:2"></div>
<div class="blocks" style="--i:3"></div>
<div class="blocks" style="--i:4"></div>
<div class="blocks" style="--i:5"></div>
<div class="blocks" style="--i:6"></div>
<div class="blocks" style="--i:7"></div>
<div class="blocks" style="--i:8"></div>
<div class="blocks" style="--i:9"></div>
<div class="blocks" style="--i:10"></div>
<div class="blocks" style="--i:11"></div>
<div class="blocks" style="--i:12"></div>
<div class="blocks" style="--i:13"></div>
<div class="blocks" style="--i:14"></div>
<div class="blocks" style="--i:15"></div>
<div class="blocks" style="--i:16"></div>
<div class="blocks" style="--i:17"></div>
<div class="blocks" style="--i:18"></div>
<div class="blocks" style="--i:19"></div>
<div class="blocks" style="--i:20"></div>
<h3>Loading...</h3>
</div>
</section>
</body>
</html>