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.
Merge pull request #453 from zero-to-mastery/XanderRubio-master
Xander rubio master
- Loading branch information
Showing
5 changed files
with
123 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Cartoon Plane Flying in the Clouds</title> | ||
<link rel="stylesheet" type="text/css" href="style.css" /> | ||
</head> | ||
<body> | ||
<div id="sky"> | ||
<div class="cloud"></div> | ||
<div class="cloud"></div> | ||
<div class="cloud"></div> | ||
<div class="cloud"></div> | ||
<div class="cloud"></div> | ||
<div id="plane"><img src="plane.png" alt="Plane" /></div> | ||
</div> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,98 @@ | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
#sky { | ||
width: 100%; | ||
height: 100vh; | ||
background-color: #87ceeb; | ||
position: relative; | ||
overflow: hidden; | ||
} | ||
|
||
.cloud { | ||
position: absolute; | ||
top: 50%; | ||
left: -100px; | ||
width: 200px; | ||
height: 100px; | ||
background-color: #fff; | ||
border-radius: 50%; | ||
transform: translate(-50%, -50%); | ||
animation: moveClouds 9s linear infinite; | ||
} | ||
|
||
.cloud:nth-child(1) { | ||
top: 20%; | ||
left: 10%; | ||
width: 150px; | ||
height: 75px; | ||
animation-delay: 0s; | ||
} | ||
|
||
.cloud:nth-child(2) { | ||
top: 60%; | ||
left: 30%; | ||
width: 100px; | ||
height: 50px; | ||
animation-delay: 2s; | ||
} | ||
|
||
.cloud:nth-child(3) { | ||
top: 40%; | ||
left: 50%; | ||
width: 120px; | ||
height: 60px; | ||
animation-delay: 4s; | ||
} | ||
|
||
.cloud:nth-child(4) { | ||
top: 80%; | ||
left: 70%; | ||
width: 80px; | ||
height: 40px; | ||
animation-delay: 6s; | ||
} | ||
|
||
.cloud:nth-child(5) { | ||
top: 30%; | ||
left: 90%; | ||
width: 100px; | ||
height: 50px; | ||
animation-delay: 8s; | ||
} | ||
|
||
@keyframes moveClouds { | ||
0% { | ||
transform: translate(-50%, -50%); | ||
} | ||
100% { | ||
transform: translate(150%, -50%); | ||
} | ||
} | ||
|
||
#plane { | ||
position: absolute; | ||
top: 50%; | ||
left: -100px; | ||
width: 100px; | ||
height: 50px; | ||
transform: translate(-50%, -50%); | ||
animation: flyPlane 10s linear infinite; | ||
} | ||
|
||
#plane img { | ||
width: 400px; | ||
height: 200px; | ||
object-fit: contain; | ||
} | ||
|
||
@keyframes flyPlane { | ||
0% { | ||
left: -100px; | ||
} | ||
100% { | ||
left: 110%; | ||
} | ||
} |
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