-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Fayezkhan1 * added details in include.js --------- Co-authored-by: Sophia Brandt <16630701+sophiabrandt@users.noreply.github.com>
- Loading branch information
1 parent
769e780
commit bc8401c
Showing
4 changed files
with
78 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,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
<div class="ball1"></div> | ||
<div class="ball2"></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,56 @@ | ||
.ball1{ | ||
width: 100px; | ||
height: 100px; | ||
border-radius: 50%; | ||
|
||
background-color: blueviolet; | ||
position: absolute; | ||
top: 50%; | ||
left: 0%; | ||
transform: translateY(-50%); | ||
animation: bounce1 3s ease-in-out infinite; | ||
|
||
|
||
} | ||
.ball2{ | ||
width: 100px; | ||
height: 100px; | ||
border-radius: 50%; | ||
|
||
background-color: blueviolet; | ||
position: absolute; | ||
top: 50%; | ||
right: 0%; | ||
transform: translateY(-50%); | ||
animation: bounce2 3s ease-in-out infinite; | ||
|
||
|
||
} | ||
h1{ | ||
color: blue; | ||
} | ||
|
||
@keyframes bounce1{ | ||
0% { | ||
left:0; | ||
} | ||
50%{ | ||
left: 44%; | ||
} | ||
|
||
100%{ | ||
left: 0; | ||
} | ||
} | ||
@keyframes bounce2{ | ||
0% { | ||
right:0; | ||
} | ||
50%{ | ||
right: 44%; | ||
} | ||
|
||
100%{ | ||
right: 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