This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 509
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
Aug 9, 2023
1 parent
f781dbf
commit 4012fab
Showing
2 changed files
with
75 additions
and
78 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,18 +1,15 @@ | ||
<!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>Document</title> | ||
<link rel="stylesheet" type="text/css" href="style.css" /> | ||
</head> | ||
|
||
<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>Document</title> | ||
<link rel="stylesheet" type="text/css" href="style.css" /> | ||
</head> | ||
|
||
<body> | ||
<br /> | ||
<div id="ts3"> | ||
</div> | ||
</body> | ||
|
||
</html> | ||
<body> | ||
<br /> | ||
<div id="ts3"></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 |
---|---|---|
@@ -1,78 +1,78 @@ | ||
#ts3 { | ||
width: 100px; | ||
height: 100px; | ||
width: 100px; | ||
height: 100px; | ||
background-color: red; | ||
position: relative; | ||
animation-name: example2; | ||
animation-duration: 4s; | ||
animation-delay: 1s; | ||
animation-direction: alternate-reverse; | ||
animation-iteration-count: infinite; | ||
} | ||
|
||
@keyframes example2 { | ||
0% { | ||
background-color: red; | ||
position: relative; | ||
animation-name: example2; | ||
animation-duration: 4s; | ||
animation-delay: 1s; | ||
animation-direction: alternate-reverse; | ||
animation-iteration-count: infinite; | ||
left: 0%; | ||
top: 0px; | ||
transform: rotate(360deg); | ||
} | ||
|
||
@keyframes example2 { | ||
0% { | ||
background-color: red; | ||
left: 0%; | ||
top: 0px; | ||
transform: rotate(360deg); | ||
} | ||
|
||
25% { | ||
background-color: yellow; | ||
left: 90%; | ||
top: 0px; | ||
transform: rotate(270deg); | ||
} | ||
25% { | ||
background-color: yellow; | ||
left: 90%; | ||
top: 0px; | ||
transform: rotate(270deg); | ||
} | ||
|
||
50% { | ||
background-color: black; | ||
left: 90%; | ||
top: 450px; | ||
transform: rotate(180deg); | ||
} | ||
50% { | ||
background-color: black; | ||
left: 90%; | ||
top: 450px; | ||
transform: rotate(180deg); | ||
} | ||
|
||
75% { | ||
background-color: aquamarine; | ||
top: 450px; | ||
left: 0px; | ||
transform: rotate(90deg); | ||
} | ||
75% { | ||
background-color: aquamarine; | ||
top: 450px; | ||
left: 0px; | ||
transform: rotate(90deg); | ||
} | ||
|
||
100% { | ||
background-color: red; | ||
left: 0%; | ||
top: 0px; | ||
} | ||
100% { | ||
background-color: red; | ||
left: 0%; | ||
top: 0px; | ||
} | ||
} | ||
|
||
body { | ||
animation-name: example; | ||
animation-duration: 4s; | ||
animation-delay: 1s; | ||
body { | ||
animation-name: example; | ||
animation-duration: 4s; | ||
animation-delay: 1s; | ||
background-color: blueviolet; | ||
animation-direction: alternate-reverse; | ||
animation-iteration-count: infinite; | ||
} | ||
|
||
@keyframes example { | ||
0% { | ||
background-color: blueviolet; | ||
animation-direction: alternate-reverse; | ||
animation-iteration-count: infinite; | ||
} | ||
|
||
@keyframes example { | ||
0% { | ||
background-color: blueviolet; | ||
} | ||
|
||
25% { | ||
background-color: aquamarine; | ||
} | ||
25% { | ||
background-color: aquamarine; | ||
} | ||
|
||
50% { | ||
background-color: coral; | ||
} | ||
50% { | ||
background-color: coral; | ||
} | ||
|
||
75% { | ||
background-color: gold; | ||
} | ||
75% { | ||
background-color: gold; | ||
} | ||
|
||
100% { | ||
background-color: lightblue; | ||
} | ||
} | ||
100% { | ||
background-color: lightblue; | ||
} | ||
} |