-
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.
Attractive Sqaure animation using css (#2405)
* Create index.html * Add files via upload * Update include.js * Delete Art/SaumyaKumar-09/Animation 4/Gif4.mp4 * Add files via upload * Update include.js * Create index.html * Add files via upload * Update include.js * Update include.js
- Loading branch information
1 parent
c59020d
commit c3a95af
Showing
4 changed files
with
123 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,19 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width-device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Bouncing ball - Animation</title> | ||
<link rel="stylesheet" href="./styles.css"> | ||
</head> | ||
<body> | ||
<div class="loader"> | ||
<div class="bounce1"></div> | ||
<div class="bounce2"></div> | ||
<div class="bounce3"></div> | ||
<div class="bounce4"></div> | ||
<div class="bounce5"></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,83 @@ | ||
* { | ||
padding: 0px; | ||
margin: 0px; | ||
} | ||
|
||
body { | ||
background-color: #e15f41; | ||
} | ||
|
||
.loader { | ||
width: 60px; | ||
height: 60px; | ||
|
||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translateX(-50%) translateY(-50%); | ||
} | ||
|
||
.bounce1 { | ||
width: 100%; | ||
height: 100%; | ||
background-color: #ffffff; | ||
border-radius: 20%; | ||
opacity: 0.6; | ||
position: absolute; | ||
animation: bounce 3s ease-in-out infinite; | ||
} | ||
|
||
.bounce2 { | ||
width: 150%; | ||
height: 150%; | ||
background-color: #ffffff; | ||
border-radius: 20%; | ||
opacity: 0.6; | ||
position: absolute; | ||
animation: bounce 3s ease-in-out infinite; | ||
animation-delay: -0.5s; | ||
} | ||
.bounce3 { | ||
width: 200%; | ||
height: 200%; | ||
background-color: #ffffff; | ||
border-radius: 20%; | ||
opacity: 0.6; | ||
position: absolute; | ||
animation: bounce 3s ease-in-out infinite; | ||
animation-delay: -1s; | ||
} | ||
.bounce4 { | ||
width: 250%; | ||
height: 250%; | ||
background-color: #ffffff; | ||
border-radius: 20%; | ||
opacity: 0.6; | ||
position: absolute; | ||
animation: bounce 3s ease-in-out infinite; | ||
animation-delay: -1.5s; | ||
} | ||
|
||
.bounce5 { | ||
width: 300%; | ||
height: 300%; | ||
background-color: #ffffff; | ||
border-radius: 20%; | ||
opacity: 0.6; | ||
position: absolute; | ||
animation: bounce 2s ease-in-out infinite; | ||
animation-delay: -2s; | ||
} | ||
|
||
|
||
@keyframes bounce { | ||
0%, 100% { | ||
transform: scale(0.0); | ||
} | ||
50% { | ||
transform: scale(2.0); | ||
} | ||
25% { | ||
transform: trasnlate(100px,200px); | ||
} | ||
} |
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