-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basket ball animation added with readme
- Loading branch information
1 parent
81d0f73
commit e6dd20b
Showing
3 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |