-
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
40d2cd3
commit 8d278bb
Showing
2 changed files
with
65 additions
and
53 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,14 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" type="text/css" href="style.css" /> | ||
<title>Novak CSS Animation</title> | ||
</head> | ||
<body> | ||
<div id="leftLine"></div> | ||
<div id="middleLine"></div> | ||
<div id="rightLine"></div> | ||
</body> | ||
</html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="stylesheet" type="text/css" href="style.css" /> | ||
<title>Novak CSS Animation</title> | ||
</head> | ||
<body> | ||
<div id="leftLine"></div> | ||
<div id="middleLine"></div> | ||
<div id="rightLine"></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,55 +1,67 @@ | ||
body { | ||
margion: 0px; | ||
background-color: whitesmoke; | ||
margion: 0px; | ||
background-color: whitesmoke; | ||
} | ||
|
||
#leftLine { | ||
display: inline-block; | ||
background-color: red; | ||
height: 20rem; | ||
width: 10rem; | ||
margin: 0px; | ||
animation-name: flag; | ||
animation-duration: 5s; | ||
animation-iteration-count: infinite; | ||
animation-direction: alternate; | ||
display: inline-block; | ||
background-color: red; | ||
height: 20rem; | ||
width: 10rem; | ||
margin: 0px; | ||
animation-name: flag; | ||
animation-duration: 5s; | ||
animation-iteration-count: infinite; | ||
animation-direction: alternate; | ||
} | ||
|
||
#middleLine { | ||
display: inline-block; | ||
background-color: white; | ||
height: 20rem; | ||
width: 10rem; | ||
margin: 0px; | ||
animation-name: flag; | ||
animation-duration: 5s; | ||
animation-iteration-count: infinite; | ||
animation-direction: alternate; | ||
display: inline-block; | ||
background-color: white; | ||
height: 20rem; | ||
width: 10rem; | ||
margin: 0px; | ||
animation-name: flag; | ||
animation-duration: 5s; | ||
animation-iteration-count: infinite; | ||
animation-direction: alternate; | ||
} | ||
|
||
#rightLine { | ||
display: inline-block; | ||
background-color: green; | ||
height: 20rem; | ||
width: 10rem; | ||
margin: 0px; | ||
animation-name: flag; | ||
animation-duration: 5s; | ||
animation-iteration-count: infinite; | ||
animation-direction: alternate; | ||
display: inline-block; | ||
background-color: green; | ||
height: 20rem; | ||
width: 10rem; | ||
margin: 0px; | ||
animation-name: flag; | ||
animation-duration: 5s; | ||
animation-iteration-count: infinite; | ||
animation-direction: alternate; | ||
} | ||
|
||
@keyframes flag { | ||
0% { | ||
box-shadow: 10px 10px black; | ||
border-radius: 0px; | ||
} | ||
25% { | ||
box-shadow: 20px 20px black; | ||
border-radius: 5px; | ||
} | ||
50% { | ||
box-shadow: 50px 50px black; | ||
border-radius: 10px; | ||
} | ||
100% { | ||
box-shadow: 75px 75px black; | ||
border-radius: 15px; | ||
} | ||
|
||
0% {box-shadow: 10px 10px black; border-radius: 0px;} | ||
25% {box-shadow: 20px 20px black; border-radius: 5px;} | ||
50% {box-shadow: 50px 50px black; border-radius: 10px;} | ||
100% {box-shadow: 75px 75px black; border-radius: 15px;} | ||
|
||
from { | ||
transform: skew(0deg, 0deg) rotateY(0deg) translate(0rem, 0rem) scale(0, 0); | ||
} | ||
to { | ||
transform: skew(-20deg, -10deg) rotateY(45deg) translate(15rem, 10rem) scale(1, 1); | ||
} | ||
} | ||
from { | ||
transform: skew(0deg, 0deg) rotateY(0deg) translate(0rem, 0rem) scale(0, 0); | ||
} | ||
to { | ||
transform: skew(-20deg, -10deg) rotateY(45deg) translate(15rem, 10rem) | ||
scale(1, 1); | ||
} | ||
} |