Skip to content

Commit 25b38ba

Browse files
authored
Add dual ring pulse loader (#2917)
* 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
1 parent e5b044c commit 25b38ba

File tree

3 files changed

+73
-0
lines changed

3 files changed

+73
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Dual Ring Pulse Loader</title>
7+
<link rel="stylesheet" href="styles.css" />
8+
</head>
9+
<body>
10+
<div class="loader">
11+
<div class="ring outer"></div>
12+
<div class="ring inner"></div>
13+
</div>
14+
</body>
15+
</html>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"artName": "Dual Ring Pulse Loader",
3+
"githubHandle": "maxfedorov"
4+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
body {
2+
height: 100vh;
3+
display: flex;
4+
justify-content: center;
5+
align-items: center;
6+
}
7+
8+
.loader {
9+
position: relative;
10+
width: 100px;
11+
height: 100px;
12+
}
13+
14+
.ring {
15+
position: absolute;
16+
border: 4px solid transparent;
17+
border-radius: 50%;
18+
}
19+
20+
.outer {
21+
width: 100px;
22+
height: 100px;
23+
border-top: 4px solid #ff3366;
24+
border-right: 4px solid #ff3366;
25+
animation: spin 2s linear infinite, pulse 1.5s ease-in-out infinite;
26+
}
27+
28+
.inner {
29+
width: 70px;
30+
height: 70px;
31+
top: 15px;
32+
left: 15px;
33+
border-bottom: 4px solid #33ffcc;
34+
border-left: 4px solid #33ffcc;
35+
animation: spin 2s linear infinite reverse, pulse 1.5s ease-in-out infinite 0.5s;
36+
}
37+
38+
@keyframes spin {
39+
0% {
40+
transform: rotate(0deg);
41+
}
42+
100% {
43+
transform: rotate(360deg);
44+
}
45+
}
46+
47+
@keyframes pulse {
48+
0%, 100% {
49+
transform: scale(1) rotate(0deg);
50+
}
51+
50% {
52+
transform: scale(1.1) rotate(180deg);
53+
}
54+
}

0 commit comments

Comments
 (0)