Skip to content

Commit 36953b1

Browse files
authored
Merge pull request #996 from pranavpanmand/add-loader-page
Add Loader Page (HTML & CSS Only)
2 parents 5147177 + 41f178a commit 36953b1

File tree

1 file changed

+114
-0
lines changed

1 file changed

+114
-0
lines changed

misc/loader14.html

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Loading Animation</title>
8+
<style>
9+
* {
10+
margin: 0;
11+
padding: 0;
12+
box-sizing: border-box;
13+
}
14+
15+
section {
16+
height: 100vh;
17+
width: 100%;
18+
background: #000;
19+
display: flex;
20+
align-items: center;
21+
justify-content: center;
22+
}
23+
24+
section .loader {
25+
height: 25px;
26+
width: 25px;
27+
position: relative;
28+
}
29+
30+
.loader .ball {
31+
position: absolute;
32+
height: 25px;
33+
width: 25px;
34+
border-radius: 50%;
35+
}
36+
37+
.loader .upper {
38+
left: 0;
39+
top: -25px;
40+
background: #2da2ff;
41+
animation: upper 1s infinite;
42+
}
43+
44+
@keyframes upper {
45+
46+
50%,
47+
100% {
48+
top: 25px;
49+
}
50+
}
51+
52+
.loader .right {
53+
bottom: 0;
54+
right: -25px;
55+
background: #ff337a;
56+
animation: right 1s infinite;
57+
}
58+
59+
@keyframes right {
60+
61+
50%,
62+
100% {
63+
right: 25px;
64+
}
65+
}
66+
67+
.loader .lower {
68+
bottom: -25px;
69+
right: 0;
70+
background: #ffff00;
71+
animation: lower 1s infinite;
72+
}
73+
74+
@keyframes lower {
75+
76+
50%,
77+
100% {
78+
bottom: 25px;
79+
}
80+
}
81+
82+
.loader .left {
83+
left: -25px;
84+
bottom: 0;
85+
background: #00ff00;
86+
animation: left 1s infinite;
87+
}
88+
89+
@keyframes left {
90+
91+
50%,
92+
100% {
93+
left: 25px;
94+
}
95+
}
96+
</style>
97+
</head>
98+
99+
<body>
100+
101+
<section>
102+
103+
<div class="loader">
104+
<div class="upper ball"></div>
105+
<div class="right ball"></div>
106+
<div class="lower ball"></div>
107+
<div class="left ball"></div>
108+
</div>
109+
110+
</section>
111+
112+
</body>
113+
114+
</html>

0 commit comments

Comments
 (0)