-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
91 lines (84 loc) · 2.06 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Loader</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
#container{
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.circle{
width: 70px;
height:70px;
position: absolute;
background-color: #3498db;
border-radius: 50%;
animation:mid 1s linear infinite;
}
.loader1,.loader2,.loader3,.loader4{
position: absolute;
border: 5px solid transparent;
border-top: 5px solid #3498db;
border-bottom: 5px solid #3498db;
border-radius: 50%;
animation: spin 1.5s linear infinite;
}
.loader1{
width: 90px;
height: 90px;
animation-delay: 0.1s;
}
.loader2 {
width: 110px;
height: 110px;
animation-delay: 0.2s;
}
.loader3 {
width: 130px;
height: 130px;
animation-delay: 0.3s;
}
.loader4 {
width: 150px;
height: 150px;
animation-delay: 0.4s;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes mid {
0%,100% {
transform: scale(0);
}
50% {
transform: scale(1);
}
}
</style>
</head>
<body>
<div id="container">
<div class="circle"></div>
<div class="loader1"></div>
<div class="loader2"></div>
<div class="loader3"></div>
<div class="loader4"></div>
</div>
</body>
</html>