Skip to content

Commit

Permalink
Bouncing Ball
Browse files Browse the repository at this point in the history
  • Loading branch information
OOGaurav authored Oct 10, 2018
1 parent 7fd1071 commit 34c23e5
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions Html/Bouncing_Ball.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<title>Ball</title>
<style type="text/css">
.ball {
height: 100px;
width: 100px;
background-color: black;
border-radius: 50%;
animation-name: bounce;
animation-duration: 2s;
animation-iteration-count: infinite;
margin: auto;
position: relative;
}

@keyframes bounce {
0% {
top: 0;
}
50% {
top: 400px;
height: 90px;
width: 110px;
background-color: grey;
}
100% {
top: 0;
}
}

</style>
</head>
<body>
<div class="ball"></div>
</body>
</html>

0 comments on commit 34c23e5

Please sign in to comment.