-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcapsule loading animation.html
More file actions
83 lines (75 loc) · 1.82 KB
/
capsule loading animation.html
File metadata and controls
83 lines (75 loc) · 1.82 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
<style>
html {
background-color: black;
}
.loader {
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
position: relative;
top: 100px;
}
.slider {
overflow: hidden;
background-color: white;
margin: 0 15px;
height: 80px;
width: 20px;
border-radius: 30px;
position: relative;
}
.slider::before {
content: "";
position: absolute;
top: 0;
left: 0;
height: 20px;
width: 20px;
border-radius: 100%;
box-shadow: inset 0px 0px 0px rgba(0, 0, 0, 0.3), 0px 420px 0 400px #2697f4,
inset 0px 0px 0px rgba(0, 0, 0, 0.1);
animation: animate_2 2.5s ease-in-out infinite;
animation-delay: calc(-0.5s * var(--i));
}
@keyframes animate_2 {
0% {
transform: translateY(250px);
filter: hue-rotate(0deg);
}
50% {
transform: translateY(0);
}
100% {
transform: translateY(250px);
filter: hue-rotate(180deg);
}
}
.text-container {
text-align: center;
margin-top: 150px;
width: fit-content;
margin-left: auto;
margin-right: auto;
}
.text-container p {
color: white;
font-family: Arial, sans-serif;
font-size: 24px;
}
</style>
<section class="loader">
<div class="slider" style="--i:0">
</div>
<div class="slider" style="--i:1">
</div>
<div class="slider" style="--i:2">
</div>
<div class="slider" style="--i:3">
</div>
<div class="slider" style="--i:4">
</div>
</section>
<div class="text-container">
<p>final exam is Loading...</p>
</div>