-
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.
Co-authored-by: Sophia Brandt <16630701+sophiabrandt@users.noreply.github.com>
- Loading branch information
1 parent
2c81a74
commit 7d619cf
Showing
4 changed files
with
129 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,104 @@ | ||
body, html { | ||
height: 100%; | ||
margin: 0; | ||
overflow: hidden; | ||
} | ||
|
||
.sky { | ||
background: black; | ||
height: 100%; | ||
position: relative; | ||
animation: skyAnimation 10s infinite linear; | ||
} | ||
|
||
.stars { | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
background-image: radial-gradient(white 1%, transparent 1%); | ||
background-size: 3px 3px; | ||
animation: starsAnimation 10s infinite linear; | ||
} | ||
|
||
.rocket { | ||
width: 100px; | ||
height: 200px; | ||
position: absolute; | ||
bottom: 0; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
animation: rocketAnimation 10s infinite linear; | ||
} | ||
|
||
.body { | ||
width: 60px; | ||
height: 120px; | ||
background: red; | ||
border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; | ||
position: absolute; | ||
top: 0; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
} | ||
|
||
.window { | ||
width: 25px; | ||
height: 25px; | ||
background: white; | ||
border-radius: 50%; | ||
position: absolute; | ||
top: 35px; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
} | ||
|
||
.fire { | ||
width: 10px; | ||
height: 60px; | ||
background: #d28810; | ||
position: absolute; | ||
top: 120px; | ||
left: 47%; | ||
transform: translateX(-50%); | ||
animation: fireAnimation 2s infinite alternate; | ||
} | ||
|
||
@keyframes rocketAnimation { | ||
0% { | ||
bottom: 0; | ||
transform: translateX(-50%) translateY(0); | ||
} | ||
100% { | ||
bottom: 100%; | ||
transform: translateX(-50%) translateY(-100%); | ||
} | ||
} | ||
|
||
@keyframes skyAnimation { | ||
0% { | ||
background-position: 0% 0%; | ||
} | ||
100% { | ||
background-position: 0% 1000%; /* Adjusted background position */ | ||
} | ||
} | ||
|
||
@keyframes starsAnimation { | ||
0% { | ||
transform: translateY(0); | ||
} | ||
100% { | ||
transform: translateY(-1000px); | ||
} | ||
} | ||
|
||
@keyframes fireAnimation { | ||
0% { | ||
opacity: 1; | ||
transform: translateY(0); | ||
} | ||
100% { | ||
opacity: 0; | ||
transform: translateY(-5px); | ||
} | ||
} |
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,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="rocket.css"> | ||
<title>Rocket</title> | ||
</head> | ||
<body> | ||
<div class="sky"> | ||
<div class="rocket"> | ||
<div class="body"></div> | ||
<div class="window"></div> | ||
<div class="fire"></div> | ||
</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