-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbar-loading.html
More file actions
112 lines (93 loc) · 2 KB
/
bar-loading.html
File metadata and controls
112 lines (93 loc) · 2 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bar loading</title>
</head>
<style>
* {
padding: 0;
margin: 0;
}
body {
background: #323c6a;
align-items: center;
align-items: center;
min-height: 100vh;
}
.loader {
position: relative;
top: 100px;
left: 20px;
display: flex;
}
.loader span {
width: 50px;
height: 80vh;
margin: 0 20px;
background: rgba(255, 255, 255, 0.8);
animation: loading 1s infinite;
}
.loader span:nth-child(1) {
animation-delay: .1s;
}
.loader span:nth-child(2) {
animation-delay: .2s;
}
.loader span:nth-child(3) {
animation-delay: .3s;
}
.loader span:nth-child(4) {
animation-delay: .4s;
}
.loader span:nth-child(5) {
animation-delay: .5s;
}
.loader span:nth-child(6) {
animation-delay: .6s;
}
.loader span:nth-child(7) {
animation-delay: .7s;
}
.loader span:nth-child(8) {
animation-delay: .8s;
}
.loader span:nth-child(9) {
animation-delay: .9s;
}
.loader span:nth-child(10) {
animation-delay: 1s;
}
@keyframes loading {
0% {
box-shadow: 0 0 0 rgba(0, 0, 0, 0.5);
opacity: 0;
transform: translateX(-50px) scale(1);
}
50% {
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
opacity: 0.5;
transform: translateX(0px) scale(1.2);
}
100% {
box-shadow: 0 0 0 rgba(0, 0, 0, 0.5);
opacity: 0;
transform: translateX(50px) scale(1);
}
}
</style>
<body>
<div class="loader">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</body>
</html>