-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<link rel="stylesheet" href="style.css"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Box Loader</title> | ||
</head> | ||
<body> | ||
<div class="load"> | ||
|
||
<div class="loder"> | ||
<span></span> | ||
<span></span> | ||
<span></span> | ||
</div> | ||
<div class="loading">Loading ...</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300&display=swap'); | ||
|
||
*{ | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
|
||
} | ||
body{ | ||
background-color:#d9e1f0; | ||
|
||
min-height: 100vh; | ||
} | ||
|
||
.load{ | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
min-height: 100vh; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
flex-direction: column; | ||
} | ||
|
||
.loading{ | ||
|
||
font-size: 2rem; | ||
font-weight: bolder; | ||
font-family: Ubuntu; | ||
color: rgb(255, 255, 255); | ||
animation: loading 1s linear infinite; | ||
position: relative; | ||
top: 5rem; | ||
} | ||
|
||
.loder{ | ||
|
||
display: flex; | ||
flex-direction: column; | ||
position: absolute; | ||
top: calc(50% - 3.5rem); | ||
left: calc(50% - 3.5rem); | ||
width: 7rem; | ||
height: 7rem; | ||
} | ||
.loder span{ | ||
|
||
z-index: 2; | ||
|
||
width: 2rem; | ||
height: 2rem; | ||
background-color: #fff; | ||
border-radius: 4px; | ||
animation: load 2s linear infinite; | ||
|
||
} | ||
.loder span:nth-child(1){ | ||
animation-delay: 0; | ||
background: rgb(240, 36, 36); | ||
box-shadow: 0 10px 10px rgb(240, 36, 36 , 0.5); | ||
} | ||
.loder span:nth-child(2){ | ||
animation-delay: -0.667s; | ||
background: rgb(240, 209, 36); | ||
box-shadow: 0 10px 10px rgb(240, 209, 36 , 0.5); | ||
} | ||
.loder span:nth-child(3){ | ||
animation-delay: -1.33s; | ||
background: rgb(111, 240, 36); | ||
box-shadow: 0 10px 10px rgb(111, 240, 36 , 0.5); | ||
} | ||
|
||
@keyframes load { | ||
0%,100%{ | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
} | ||
25%{ | ||
position: absolute; | ||
top: 0; | ||
left: 3.5rem; | ||
} | ||
50%{ | ||
position: absolute; | ||
top: 3.5rem; | ||
left: 3.5rem; | ||
} | ||
75%{ | ||
position: absolute; | ||
top: 3.5rem; | ||
left: 0; | ||
} | ||
} | ||
@keyframes loading { | ||
0%,100%{ | ||
opacity: 1; | ||
} | ||
50%{ | ||
opacity: 0.4; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters