Skip to content

Commit d9d19e6

Browse files
add my animation (#2945)
Co-authored-by: Laureline Paris <[email protected]>
1 parent 3d61254 commit d9d19e6

File tree

3 files changed

+94
-0
lines changed

3 files changed

+94
-0
lines changed

Art/ruthberkowicz-airwords/index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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>Airwords</title>
7+
<link rel="stylesheet" href="styles.css" />
8+
</head>
9+
<body>
10+
<div class="floating-area">
11+
<span style="--i:0;">💡 Create</span>
12+
<span style="--i:1;">🧠 Learn</span>
13+
<span style="--i:2;">⚙️ Build</span>
14+
<span style="--i:3;">🧪 Experiment</span>
15+
<span style="--i:4;">🚀 Deploy</span>
16+
<span style="--i:5;">💻 Code</span>
17+
<span style="--i:6;">🌐 API</span>
18+
<span style="--i:7;">🎨 Design</span>
19+
</div>
20+
</body>
21+
</html>
22+

Art/ruthberkowicz-airwords/meta.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"artName": "airwords",
3+
"githubHandle": "ruthberkowicz"
4+
}

Art/ruthberkowicz-airwords/styles.css

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
body {
2+
margin: 0;
3+
background: linear-gradient(to bottom, #f0f4ff, #dbefff);
4+
height: 100vh;
5+
overflow: hidden;
6+
font-family: 'Segoe UI', sans-serif;
7+
}
8+
9+
.floating-area {
10+
position: relative;
11+
width: 100%;
12+
height: 100%;
13+
}
14+
15+
.floating-area span {
16+
position: absolute;
17+
bottom: -50px;
18+
left: calc(5vw + var(--i) * 11vw);
19+
font-size: clamp(1rem, 1.2vw + 0.5rem, 2rem);
20+
font-weight: bold;
21+
padding: 0.5em 1em;
22+
border-radius: 30px;
23+
background-color: hsla(calc(var(--i) * 45), 70%, 85%, 0.3);
24+
color: hsl(calc(var(--i) * 45), 80%, 50%);
25+
backdrop-filter: blur(3px);
26+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
27+
animation: floatUp 8s ease-in-out infinite;
28+
animation-delay: calc(var(--i) * 0.6s);
29+
opacity: 0;
30+
transition: transform 0.3s ease, box-shadow 0.3s ease;
31+
white-space: nowrap;
32+
max-width: 90vw;
33+
}
34+
35+
@keyframes floatUp {
36+
0% {
37+
transform: translateY(0px) scale(1);
38+
opacity: 0;
39+
}
40+
10% {
41+
opacity: 1;
42+
}
43+
50% {
44+
transform: translateY(-40vh) scale(1.05) rotate(1deg);
45+
}
46+
90% {
47+
opacity: 1;
48+
}
49+
100% {
50+
transform: translateY(-120vh) scale(1);
51+
opacity: 0;
52+
}
53+
}
54+
55+
.floating-area span:hover {
56+
transform: scale(1.2);
57+
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
58+
z-index: 10;
59+
}
60+
61+
62+
63+
64+
65+
66+
67+
68+

0 commit comments

Comments
 (0)