Skip to content

Commit

Permalink
basket ball animation added with readme
Browse files Browse the repository at this point in the history
  • Loading branch information
RAHULBAWA777 committed May 31, 2022
1 parent 81d0f73 commit e6dd20b
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 0 deletions.
20 changes: 20 additions & 0 deletions basket ball animation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

# basket ball animation

## 🚀 About Me
I'm a full stack developer...you can follow me here -https://github.com/RAHULBAWA777


## Run Locally

Clone the project


Start the live server


## Used By

This project is used by the following companies:

-https://github.com/Dezenix/frontend-html-css-js
19 changes: 19 additions & 0 deletions basket ball animation/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!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>basketball Animation</title>
<link rel="stylesheet" href="style.css">
</head>

<body>
<div class="container">
<div class="ball"></div>
<div class="shadow"></div>
</div>
</body>

</html>
53 changes: 53 additions & 0 deletions basket ball animation/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
body{
height: 100vh;
display: flex;
justify-content: center;
align-items: center;

}
.container {
height: 200px;
position: relative;
}

.ball {
width: 100px;
height: 100px;
background-color: orange;
border-radius: 50%;
border: 2px solid black;
background-image: radial-gradient(circle at -10px 20px, transparent 47px, black 50px, black 25px, transparent 0), radial-gradient(circle at 110px 70px, transparent 47px, black 50px, transparent 0), linear-gradient(110deg, transparent 60px, black 63px, transparent 0), linear-gradient(18deg, transparent 56px, black 60px, transparent 0);
animation: jump .5s cubic-bezier(.8, -.5, .2, 1.4) infinite alternate;

}

.shadow {
width: 100px;
height: 100px;
border-radius: 50%;
position: absolute;
bottom: -50px;
left: 0;
z-index: -1;
animation: jump2 .5s cubic-bezier(.8, -.5, .2, 1.4) infinite alternate;
}

@keyframes jump {
100% {
transform: translate3d(0, 100px, 0);
}
}

@keyframes jump2 {
0% {
transform: rotateX(80deg);
scale: 3d(.5, .5, 10);
background-color: black;
}

100% {
transform: rotateX(80deg);
scale: 3d(.5, .5, 10);
background-color: black;
}
}

0 comments on commit e6dd20b

Please sign in to comment.