-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1732 from ShafiqRasa/loader-branch
simple three dot loader has just added by ShafiqRasa, thanks!
- Loading branch information
Showing
4 changed files
with
6,288 additions
and
1 deletion.
There are no files selected for viewing
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,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; | ||
} | ||
} |
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" /> | ||
<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> |
Oops, something went wrong.