Skip to content

Commit

Permalink
Add dual ring pulse loader (#2917)
Browse files Browse the repository at this point in the history
* 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
maxfedorov authored Feb 14, 2025
1 parent e5b044c commit 25b38ba
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Art/maxfedorov-dual-ring-pulse-loader/index.html
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>
4 changes: 4 additions & 0 deletions Art/maxfedorov-dual-ring-pulse-loader/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"artName": "Dual Ring Pulse Loader",
"githubHandle": "maxfedorov"
}
54 changes: 54 additions & 0 deletions Art/maxfedorov-dual-ring-pulse-loader/styles.css
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);
}
}

0 comments on commit 25b38ba

Please sign in to comment.