-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add dual ring pulse loader * Revert "Add dual ring pulse loader" This reverts commit db2d82d. * Add dual ring pulse loader (cherry picked from commit db2d82d) * Update folder name * rename folder
- Loading branch information
1 parent
e5b044c
commit 25b38ba
Showing
3 changed files
with
73 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,15 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Dual Ring Pulse Loader</title> | ||
<link rel="stylesheet" href="styles.css" /> | ||
</head> | ||
<body> | ||
<div class="loader"> | ||
<div class="ring outer"></div> | ||
<div class="ring inner"></div> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"artName": "Dual Ring Pulse Loader", | ||
"githubHandle": "maxfedorov" | ||
} |
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,54 @@ | ||
body { | ||
height: 100vh; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.loader { | ||
position: relative; | ||
width: 100px; | ||
height: 100px; | ||
} | ||
|
||
.ring { | ||
position: absolute; | ||
border: 4px solid transparent; | ||
border-radius: 50%; | ||
} | ||
|
||
.outer { | ||
width: 100px; | ||
height: 100px; | ||
border-top: 4px solid #ff3366; | ||
border-right: 4px solid #ff3366; | ||
animation: spin 2s linear infinite, pulse 1.5s ease-in-out infinite; | ||
} | ||
|
||
.inner { | ||
width: 70px; | ||
height: 70px; | ||
top: 15px; | ||
left: 15px; | ||
border-bottom: 4px solid #33ffcc; | ||
border-left: 4px solid #33ffcc; | ||
animation: spin 2s linear infinite reverse, pulse 1.5s ease-in-out infinite 0.5s; | ||
} | ||
|
||
@keyframes spin { | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
@keyframes pulse { | ||
0%, 100% { | ||
transform: scale(1) rotate(0deg); | ||
} | ||
50% { | ||
transform: scale(1.1) rotate(180deg); | ||
} | ||
} |