Skip to content

Commit 0dea023

Browse files
authored
Add Pulsing Rings animation by fab-c14 (#2993)
* Add Pulsing Rings animation by fab-c14 * Update and rename PulseRings.css to index.css * Update and rename index.css to style.css * Update and rename PulseRings.html to index.html * Change stylesheet link in index.html Updated the stylesheet link from 'PulseRings.css' to 'style.css'. * Update index.html * Fix stylesheet link in index.html Updated the stylesheet link from './style.css' to './styles.css'. * Fix JSON formatting in meta.json * Update and rename style.css to styles.css
1 parent 52ebc7b commit 0dea023

3 files changed

Lines changed: 132 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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>Pulsing Rings Animation</title>
7+
<link rel="stylesheet" href="./styles.css"/>
8+
</head>
9+
<body>
10+
<div class="rings">
11+
<div class="ring ring1"></div>
12+
<div class="ring ring2"></div>
13+
<div class="ring ring3"></div>
14+
<div class="ring ring4"></div>
15+
</div>
16+
</body>
17+
</html>
18+
19+
20+

Art/fabc14-pulsing-rings/meta.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"artName": "Pulsing Rings",
3+
"githubHandle": "fab-c14"
4+
}
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
body {
2+
background: #18172a;
3+
display: flex;
4+
min-height: 100vh;
5+
align-items: center;
6+
justify-content: center;
7+
}
8+
9+
.rings {
10+
position: relative;
11+
width: 250px;
12+
height: 250px;
13+
display: flex;
14+
align-items: center;
15+
justify-content: center;
16+
}
17+
18+
.ring {
19+
position: absolute;
20+
border-radius: 50%;
21+
border: 5px solid;
22+
opacity: 0.8;
23+
animation: pulse 2.5s infinite cubic-bezier(.68,-0.55,.27,1.55);
24+
}
25+
26+
.ring1 {
27+
width: 70px;
28+
height: 70px;
29+
border-color: #ff6ec4;
30+
animation-delay: 0s;
31+
animation-name: pulse, rainbow1;
32+
animation-duration: 2.5s, 4s;
33+
animation-timing-function: cubic-bezier(.68,-0.55,.27,1.55), linear;
34+
animation-iteration-count: infinite, infinite;
35+
}
36+
37+
.ring2 {
38+
width: 110px;
39+
height: 110px;
40+
border-color: #787ff6;
41+
animation-delay: 0.4s;
42+
animation-name: pulse, rainbow2;
43+
animation-duration: 2.5s, 4s;
44+
animation-timing-function: cubic-bezier(.68,-0.55,.27,1.55), linear;
45+
animation-iteration-count: infinite, infinite;
46+
}
47+
48+
.ring3 {
49+
width: 160px;
50+
height: 160px;
51+
border-color: #43e97b;
52+
animation-delay: 0.8s;
53+
animation-name: pulse, rainbow3;
54+
animation-duration: 2.5s, 4s;
55+
animation-timing-function: cubic-bezier(.68,-0.55,.27,1.55), linear;
56+
animation-iteration-count: infinite, infinite;
57+
}
58+
59+
.ring4 {
60+
width: 210px;
61+
height: 210px;
62+
border-color: #38f9d7;
63+
animation-delay: 1.2s;
64+
animation-name: pulse, rainbow4;
65+
animation-duration: 2.5s, 4s;
66+
animation-timing-function: cubic-bezier(.68,-0.55,.27,1.55), linear;
67+
animation-iteration-count: infinite, infinite;
68+
}
69+
70+
@keyframes pulse {
71+
0%, 100% {
72+
transform: scale(1);
73+
opacity: 0.8;
74+
}
75+
50% {
76+
transform: scale(1.18);
77+
opacity: 1;
78+
}
79+
}
80+
81+
@keyframes rainbow1 {
82+
0% { border-color: #ff6ec4; }
83+
25% { border-color: #f7971e; }
84+
50% { border-color: #43e97b; }
85+
75% { border-color: #38f9d7; }
86+
100% { border-color: #ff6ec4; }
87+
}
88+
@keyframes rainbow2 {
89+
0% { border-color: #787ff6; }
90+
25% { border-color: #f7971e; }
91+
50% { border-color: #ff6ec4; }
92+
75% { border-color: #43e97b; }
93+
100% { border-color: #787ff6; }
94+
}
95+
@keyframes rainbow3 {
96+
0% { border-color: #43e97b; }
97+
25% { border-color: #38f9d7; }
98+
50% { border-color: #f7971e; }
99+
75% { border-color: #ff6ec4; }
100+
100% { border-color: #43e97b; }
101+
}
102+
@keyframes rainbow4 {
103+
0% { border-color: #38f9d7; }
104+
25% { border-color: #ff6ec4; }
105+
50% { border-color: #787ff6; }
106+
75% { border-color: #f7971e; }
107+
100% { border-color: #38f9d7; }
108+
}

0 commit comments

Comments
 (0)