File tree Expand file tree Collapse file tree 1 file changed +114
-0
lines changed Expand file tree Collapse file tree 1 file changed +114
-0
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments