-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1821 from zero-to-mastery/Venkateeshh-Venkateesh
Venkateeshh venkateesh
- Loading branch information
Showing
4 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=3, initial-scale=1.0" /> | ||
<title>BouncingBall</title> | ||
<link rel="stylesheet" href="style.css" /> | ||
</head> | ||
<body> | ||
<div class="loader"></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,64 @@ | ||
body { | ||
background: linear-gradient(90deg, #efd5ff 0%, #515ada 100%); | ||
} | ||
|
||
.loader { | ||
position: relative; | ||
width: 120px; | ||
height: 90px; | ||
margin: 30% auto; | ||
} | ||
|
||
.loader:before { | ||
content: ''; | ||
position: absolute; | ||
bottom: 30px; | ||
left: 50px; | ||
height: 30px; | ||
width: 30px; | ||
border-radius: 50%; | ||
background: #e3ca8a; | ||
animation: loading-bounce 0.5s ease-in-out infinite alternate; | ||
} | ||
|
||
.loader:after { | ||
content: ''; | ||
position: absolute; | ||
right: 0; | ||
top: 0; | ||
height: 7px; | ||
width: 45px; | ||
border-radius: 4px; | ||
box-shadow: 0 5px 0 #f2f2f2, -35px 50px 0 #f2f2f2, -70px 95px 0 #f2f2f2; | ||
animation: loading-step 1s ease-in-out infinite; | ||
} | ||
|
||
@keyframes loading-bounce { | ||
0% { | ||
transform: scale(1, 0.7); | ||
} | ||
|
||
40% { | ||
transform: scale(0.8, 1.2); | ||
} | ||
|
||
60% { | ||
transform: scale(1, 1); | ||
} | ||
|
||
100% { | ||
bottom: 140px; | ||
} | ||
} | ||
|
||
@keyframes loading-step { | ||
0% { | ||
box-shadow: 0 10px 0 rgba(0, 0, 0, 0), 0 10px 0 #f2f2f2, | ||
-35px 50px 0 #f2f2f2, -70px 90px 0 #f2f2f2; | ||
} | ||
|
||
100% { | ||
box-shadow: 0 10px 0 #f2f2f2, -35px 50px 0 #f2f2f2, -70px 90px 0 #f2f2f2, | ||
-70px 90px 0 rgba(0, 0, 0, 0); | ||
} | ||
} |
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