-
Notifications
You must be signed in to change notification settings - Fork 33
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
321cca9
commit 8e0b1f3
Showing
5 changed files
with
123 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
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,3 @@ | ||
# Loader glowing | ||
<img src="./loader.png"> | ||
by [JonathanAllisson](https://github.com/JonathanAllisson) |
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,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="./styles.css"> | ||
<title>Loader</title> | ||
</head> | ||
<body> | ||
<div class="loader"> | ||
<span></span> | ||
<span></span> | ||
<span></span> | ||
<span></span> | ||
</div> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,101 @@ | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
min-height: 100vh; | ||
background: #000; | ||
} | ||
|
||
.loader { | ||
position: relative; | ||
width: 200px; | ||
height: 200px; | ||
overflow: hidden; | ||
} | ||
|
||
.loader span { | ||
position: absolute; | ||
display: block; | ||
} | ||
|
||
.loader span:nth-child(1) { | ||
top: 0; | ||
left: -100%; | ||
width: 100%; | ||
height: 40px; | ||
background: linear-gradient(90deg, transparent, #03e9f4); | ||
animation: animate1 1s linear infinite; | ||
animation-delay: 0s; | ||
} | ||
|
||
@keyframes animate1 { | ||
0% { | ||
left: -100%; | ||
} | ||
100% { | ||
left: 100%; | ||
} | ||
} | ||
|
||
.loader span:nth-child(3) { | ||
bottom: 0; | ||
left: -100%; | ||
width: 100%; | ||
height: 40px; | ||
background: linear-gradient(270deg, transparent, #03e9f4); | ||
animation: animate3 1s linear infinite; | ||
animation-delay: 0s; | ||
} | ||
|
||
@keyframes animate3 { | ||
0% { | ||
left: 100%; | ||
} | ||
100% { | ||
left: -100%; | ||
} | ||
} | ||
|
||
.loader span:nth-child(2) { | ||
right: 0; | ||
top: -100%; | ||
width: 40px; | ||
height: 100%; | ||
background: linear-gradient(180deg, transparent, #03e9f4); | ||
animation: animate2 1s linear infinite; | ||
animation-delay: 0.5s; | ||
} | ||
|
||
@keyframes animate2 { | ||
0% { | ||
top: -100%; | ||
} | ||
100% { | ||
top: 100%; | ||
} | ||
} | ||
|
||
.loader span:nth-child(4) { | ||
left: 0; | ||
top: 100%; | ||
width: 40px; | ||
height: 100%; | ||
background: linear-gradient(0deg, transparent, #03e9f4); | ||
animation: animate4 1s linear infinite; | ||
animation-delay: 0.5s; | ||
} | ||
|
||
@keyframes animate4 { | ||
0% { | ||
top: 100%; | ||
} | ||
100% { | ||
top: -100%; | ||
} | ||
} |