File tree Expand file tree Collapse file tree 2 files changed +71
-0
lines changed
02.Creative Loading Animation Expand file tree Collapse file tree 2 files changed +71
-0
lines changed Original file line number Diff line number Diff line change 1+ < html lang ="en ">
2+ < head >
3+ < meta charset ="UTF-8 " />
4+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6+ < title > Loading Animation</ title >
7+ < link rel ="stylesheet " href ="style.css " />
8+ </ head >
9+ < body >
10+ < section class ="wrapper ">
11+ < div class ="loader ">
12+ < div class ="loading one "> </ div >
13+ < div class ="loading two "> </ div >
14+ < div class ="loading three "> </ div >
15+ < div class ="loading four "> </ div >
16+ </ div >
17+ </ section >
18+ </ body >
19+ </ html >
Original file line number Diff line number Diff line change 1+ * {
2+ margin : 0 ;
3+ padding : 0 ;
4+ box-sizing : border-box;
5+ }
6+
7+ body {
8+ background : # 00008bcb ;
9+ }
10+
11+ .wrapper {
12+ display : flex;
13+ justify-content : center;
14+ align-items : center;
15+ min-height : 100vh ;
16+ }
17+
18+ .wrapper .loader {
19+ display : flex;
20+ justify-content : space-evenly;
21+ padding : 0 20px ;
22+ }
23+
24+ .loader .loading {
25+ background : # fff ;
26+ width : 30px ;
27+ height : 30px ;
28+ border-radius : 50px ;
29+ margin : 0 10px ;
30+ animation : load 0.8s ease infinite;
31+ }
32+
33+ .loader .loading .one {
34+ animation-delay : 0.3s ;
35+ }
36+ .loader .loading .two {
37+ animation-delay : 0.4s ;
38+ }
39+ .loader .loading .three {
40+ animation-delay : 0.5s ;
41+ }
42+
43+ @keyframes load {
44+ 0% {
45+ width : 30px ;
46+ height : 30px ;
47+ }
48+ 50% {
49+ width : 20px ;
50+ height : 20px ;
51+ }
52+ }
You can’t perform that action at this time.
0 commit comments