Skip to content

Commit

Permalink
Merge pull request #1732 from ShafiqRasa/loader-branch
Browse files Browse the repository at this point in the history
simple three dot loader has just added by ShafiqRasa, thanks!
  • Loading branch information
l-white authored Oct 2, 2023
2 parents 6dc7579 + 85a4bd9 commit 1f78f2d
Show file tree
Hide file tree
Showing 4 changed files with 6,288 additions and 1 deletion.
Binary file added Art/shafiq/loader.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 92 additions & 0 deletions Art/shafiq/loading.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
body {
min-height: 97vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.loader-container,
.loader-container-shadow {
display: flex;
gap: 0.5rem;
}
.loader-container {
z-index: 1;
}
.loader-container-shadow {
margin-top: -5px;
}

.dot {
padding: 10px;
border-radius: 50%;
background-size: 1000%;
background-image: linear-gradient(
to right,
#f97316,
#b45309,
#fca5a5,
#4d7c0f,
#047857,
#eab308,
#3730a3,
#6b21a8,
#a3e635,
#9f1239
);
}
.dot-shadow {
background-color: lightgray;
width: 20px;
height: 10px;
border-radius: 50%;
}

.loader-container div:nth-child(1) {
animation: bounching 2s ease-in-out infinite;
}
.loader-container div:nth-child(2) {
animation: bounching 2s 0.5s ease-in-out infinite;
}
.loader-container div:nth-child(3) {
animation: bounching 2s 1s ease-in-out infinite;
}

.loader-container-shadow div:nth-child(1) {
animation: shadow 2s ease-in-out infinite;
}

.loader-container-shadow div:nth-child(2) {
animation: shadow 2s 0.5s ease-in-out infinite;
}
.loader-container-shadow div:nth-child(3) {
animation: shadow 2s 1s ease-in-out infinite;
}

@keyframes bounching {
0% {
transform: translateY(-20px);
background-position: 0% 100%;
}
50% {
transform: translateY(0px);
background-position: 100% 0%;
}
100% {
transform: translateY(-20px);
background-position: 0% 100%;
}
}

@keyframes shadow {
0% {
scale: 0;
}
50% {
scale: 1;
opacity: 0.5;
}
100% {
scale: 0;
}
}
21 changes: 21 additions & 0 deletions Art/shafiq/loading.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="loading.css" />
<title>loading</title>
</head>
<body>
<div class="loader-container">
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
</div>
<div class="loader-container-shadow">
<div class="dot-shadow"></div>
<div class="dot-shadow"></div>
<div class="dot-shadow"></div>
</div>
</body>
</html>
Loading

0 comments on commit 1f78f2d

Please sign in to comment.