Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Animations-CSS/Balloon fill/ReadMe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Balloon animation

This is a balloon animation using CSS.
15 changes: 15 additions & 0 deletions Animations-CSS/Balloon fill/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 http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Balloon fill animation</title>
<link rel="stylesheet", href="style.css">
</head>
<body>
<div class="container">
<div class="balloon"></div>
</div>
</body>
</html>
71 changes: 71 additions & 0 deletions Animations-CSS/Balloon fill/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
* {
margin: 0;
padding: 0px;
box-sizing: border-box;
}

body {
display: flex;
background-color: aquamarine;
align-items: center;
justify-content: center;
}

.container {
position: absolute;
margin: auto;
height: 500px;
width: 500px;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
background-color: aquamarine;
}

.balloon {
height: 145px;
width: 100px;
border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
position: absolute;
left: 0px;
top: 0px;
right: 0px;
bottom: 0px;
margin: auto;
background-color: blueviolet;
animation: movenpop 3s linear infinite
}

.balloon:before {
content: "";
position: absolute;
width: 3px;
height: 100px;
top: 145px;
left: 50px;
background-color: gray;
border-radius: 10px;
}

@keyframes movenpop {
0% {
transform: translateY(100px);
opacity: 0;
}
50% {
transform: translateY(0px);
scale: 1;
}
80% {
transform: translateY(-200px);
opacity: 1;
scale: 1;
}
100% {
transform: translateY(-200px);
opacity: 0;
scale: 1;
}
}