Skip to content

Commit

Permalink
add loader glowing
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanAllisson committed Oct 8, 2021
1 parent 321cca9 commit 8e0b1f3
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
| Neumorphism Gradient Loader | https://lavishbansal17.github.io/Neumorphism-Gradient-Loader/ |
| Card Flip on Hold | https://gabrielgomeso.github.io/card_flip.html |
| Credit Cards | https://iqbalutomo.github.io/credit-cards/ |
| Loader Glowing | https://jonathanallisson.github.io/loader/ |

---

Expand Down
3 changes: 3 additions & 0 deletions loader-glowing/Readme.md
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)
18 changes: 18 additions & 0 deletions loader-glowing/index.html
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>
Binary file added loader-glowing/loader.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
101 changes: 101 additions & 0 deletions loader-glowing/styles.css
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%;
}
}

0 comments on commit 8e0b1f3

Please sign in to comment.