-
Notifications
You must be signed in to change notification settings - Fork 9
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
1 parent
3807f42
commit f0ebd71
Showing
4 changed files
with
211 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,37 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Loading Animation</title> | ||
|
||
<link rel="stylesheet" href="style.css"> | ||
<link rel="shortcut icon" type="image/png" href="../../assets/favicon.png"> | ||
</head> | ||
<body> | ||
<section> | ||
<div class="loader"> | ||
<span style="--i:1"></span> | ||
<span style="--i:2"></span> | ||
<span style="--i:3"></span> | ||
<span style="--i:4"></span> | ||
<span style="--i:5"></span> | ||
<span style="--i:6"></span> | ||
<span style="--i:7"></span> | ||
<span style="--i:8"></span> | ||
<span style="--i:9"></span> | ||
<span style="--i:10"></span> | ||
<span style="--i:11"></span> | ||
<span style="--i:12"></span> | ||
<span style="--i:13"></span> | ||
<span style="--i:14"></span> | ||
<span style="--i:15"></span> | ||
<span style="--i:16"></span> | ||
<span style="--i:17"></span> | ||
<span style="--i:18"></span> | ||
<span style="--i:19"></span> | ||
<span style="--i:20"></span> | ||
</div> | ||
</section> | ||
</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
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,68 @@ | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
section { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
min-height: 100vh; | ||
background: #042104; | ||
animation: bgAnimation 10s linear infinite; | ||
|
||
.loader { | ||
position: relative; | ||
width: 120px; | ||
height: 120px; | ||
|
||
span { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
transform: rotate(calc(18deg * var(--i))); | ||
|
||
&::before { | ||
content: ''; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 15px; | ||
height: 15px; | ||
border-radius: 50%; | ||
background: #00ff0a; | ||
box-shadow: 0 0 10px #00ff0a, | ||
0 0 20px #00ff0a, | ||
0 0 40px #00ff0a, | ||
0 0 60px #00ff0a, | ||
0 0 80px #00ff0a, | ||
0 0 100px #00ff0a; | ||
animation: loadingAnimation 2s linear infinite; | ||
animation-delay: calc(.1s * var(--i)); | ||
} | ||
} | ||
} | ||
} | ||
|
||
@keyframes bgAnimation { | ||
0% { | ||
filter: hue-rotate(0deg); | ||
} | ||
|
||
100% { | ||
filter: hue-rotate(360deg); | ||
} | ||
} | ||
|
||
@keyframes loadingAnimation { | ||
0% { | ||
transform: scale(1); | ||
} | ||
|
||
80%,100% { | ||
transform: scale(0); | ||
} | ||
} |
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