Skip to content

Commit

Permalink
Merge pull request #33 from SamirKaushik/master
Browse files Browse the repository at this point in the history
Bouncing Balls Animation
  • Loading branch information
pulkit-30 authored Oct 4, 2021
2 parents fd6dff3 + 9d0fcc7 commit e740ca2
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Bouncing Balls/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# BOUNCING BALLS
<img src="https://github.com/SamirKaushik/Frontend-Animations/blob/43b65dd371b10b73aac7456f1db944dfe8472d7b/Bouncing%20Balls/Screenshot%20(89).png">
Binary file added Bouncing Balls/Screenshot (89).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 68 additions & 0 deletions Bouncing Balls/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<!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>BOUNCY BALLS</title>
<style>body{
background-color: black;}
@keyframes ball{
from{margin-bottom: 0px;}
to{margin-bottom: 175px;}
}

.bouncy-box{
position: absolute;
left: 50%;
transform: translate(-50%);
top: 20%;
margin: auto;
color: white;
border-style: solid;
border-width: 0px 0px 10px 0px;
border-color: white!important;
height: 250px;
width: 370px;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: end;

}
.ball{
border-radius: 1000px;
margin: auto;
margin-bottom: 0px;
height:45px ;
width: 45px;
animation-name: ball;
animation-duration: 0.8s;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-timing-function: ease-out;
}
.first{ background-color: yellow;
animation-delay: 0.1s;}
.second{ background-color: aqua;
animation-delay: 0.9s;}
.third{ background-color: coral;animation-delay: 0.7s;}
.fourth{background-color: deeppink; animation-delay: 1.1s;}
.fifth{ background-color: lawngreen;animation-delay: 0.4s;}

</style>
</head>
<body>
<div class="my_info" style="margin: auto; margin-top: 20px; color: white; text-align: center;">
Made by: <a href="https://github.com/SamirKaushik" style="text-decoration: none; color: cyan; font-size: 25px;">Samir Kaushik</a> <br>
Date: 04-10-2021
</div>
<div class="box bouncy-box">
<div class="ball first"></div>
<div class="ball second"></div>
<div class="ball third"></div>
<div class="ball fourth"></div>
<div class="ball fifth"></div>
</div>
</body>
</html>

0 comments on commit e740ca2

Please sign in to comment.