Skip to content

Commit

Permalink
Add two animations (#2898)
Browse files Browse the repository at this point in the history
  • Loading branch information
EstherKal authored Jan 1, 2025
1 parent 1f104cc commit 4a49b8a
Show file tree
Hide file tree
Showing 6 changed files with 173 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Art/EstherKal-ExpandingBubble/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Expanding Bubble Animation</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="bubble"></div>
</body>
</html>
4 changes: 4 additions & 0 deletions Art/EstherKal-ExpandingBubble/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"artName": "ExpandingBubble",
"githubHandle": "EstherKal"
}
38 changes: 38 additions & 0 deletions Art/EstherKal-ExpandingBubble/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background: linear-gradient(135deg, #ff7eb3, #8b5cf6);
overflow: hidden;
}

.bubble {
width: 100px;
height: 100px;
background: radial-gradient(circle, #ff9a9e, #fad0c4);
border-radius: 50%;
animation: bubbleMove 3s infinite alternate, colorChange 6s infinite;
}

@keyframes bubbleMove {
0% {
transform: scale(1);
}
100% {
transform: scale(1.5) translateY(-20px);
}
}

@keyframes colorChange {
0% {
background: radial-gradient(circle, #ff9a9e, #fad0c4);
}
50% {
background: radial-gradient(circle, #a1c4fd, #c2e9fb);
}
100% {
background: radial-gradient(circle, #fbc2eb, #a6c1ee);
}
}
31 changes: 31 additions & 0 deletions Art/EstherKal-HappyBirthdayBalloons/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Happy Birthday Balloons</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>

<div class="balloon-container">
<div class="balloon" id="balloon1"><span>H</span></div>
<div class="balloon" id="balloon2"><span>A</span></div>
<div class="balloon" id="balloon3"><span>P</span></div>
<div class="balloon" id="balloon4"><span>P</span></div>
<div class="balloon" id="balloon5"><span>Y</span></div>

<div class="space"></div>

<div class="balloon" id="balloon6"><span>B</span></div>
<div class="balloon" id="balloon7"><span>I</span></div>
<div class="balloon" id="balloon8"><span>R</span></div>
<div class="balloon" id="balloon9"><span>T</span></div>
<div class="balloon" id="balloon10"><span>H</span></div>
<div class="balloon" id="balloon11"><span>D</span></div>
<div class="balloon" id="balloon12"><span>A</span></div>
<div class="balloon" id="balloon13"><span>Y</span></div>
</div>

</body>
</html>
4 changes: 4 additions & 0 deletions Art/EstherKal-HappyBirthdayBalloons/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"artName": "HappyBirthdayBalloons",
"githubHandle": "EstherKal"
}
84 changes: 84 additions & 0 deletions Art/EstherKal-HappyBirthdayBalloons/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
body {
background-color: #f0f8ff;
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}

.balloon-container {
display: flex;
justify-content: center;
align-items: center;
position: relative;
height: 100%;
}

.balloon {
background-color: #ff6f61;
width: 60px;
height: 80px;
border-radius: 50%;
margin: 0 10px;
display: flex;
justify-content: center;
align-items: center;
font-size: 24px;
color: white;
font-weight: bold;
position: relative;
animation: happy-birthday-balloons 2s ease-in-out infinite;
}

.space {
width: 40px;
}

.balloon:before {
content: "";
position: absolute;
width: 2px;
height: 150px;
background-color: #333;
top: 100%;
left: 50%;
transform: translateX(-50%);
}

@keyframes happy-birthday-balloons {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-40px);
}
}

#balloon1, #balloon3, #balloon5, #balloon7, #balloon9, #balloon11, #balloon13 {
animation: floatUp 2s ease-in-out infinite;
}

#balloon2, #balloon4, #balloon6, #balloon8, #balloon10, #balloon12 {
animation: floatDown 2s ease-in-out infinite;
}

@keyframes floatUp {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-40px);
}
}

@keyframes floatDown {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(40px);
}
}

0 comments on commit 4a49b8a

Please sign in to comment.