-
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.
- Loading branch information
Zero to Mastery
committed
Oct 2, 2023
1 parent
ac306d2
commit b22a560
Showing
2 changed files
with
64 additions
and
68 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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=3, initial-scale=1.0"> | ||
<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> | ||
</head> | ||
<body> | ||
<div class="loader"></div> | ||
</body> | ||
</html> | ||
</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 |
---|---|---|
@@ -1,68 +1,64 @@ | ||
body{ | ||
background: linear-gradient(90deg, #efd5ff 0%, #515ada 100%); | ||
body { | ||
background: linear-gradient(90deg, #efd5ff 0%, #515ada 100%); | ||
} | ||
|
||
.loader { | ||
position: relative; | ||
width: 120px; | ||
height: 90px; | ||
margin: 30% auto; | ||
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); | ||
} | ||
|
||
.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; | ||
|
||
40% { | ||
transform: scale(0.8, 1.2); | ||
} | ||
|
||
.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; | ||
|
||
60% { | ||
transform: scale(1, 1); | ||
} | ||
|
||
@keyframes loading-bounce { | ||
0% { | ||
transform: scale(1, 0.7); | ||
} | ||
|
||
40% { | ||
transform: scale(0.8, 1.2); | ||
} | ||
|
||
60% { | ||
transform: scale(1, 1); | ||
} | ||
|
||
100% { | ||
bottom: 140px; | ||
} | ||
|
||
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; | ||
} | ||
|
||
@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); | ||
} | ||
} | ||
|
||
100% { | ||
box-shadow: 0 10px 0 #f2f2f2, -35px 50px 0 #f2f2f2, -70px 90px 0 #f2f2f2, | ||
-70px 90px 0 rgba(0, 0, 0, 0); | ||
} | ||
} |