Skip to content

Commit

Permalink
Added Rocket (#1775)
Browse files Browse the repository at this point in the history
Co-authored-by: Sophia Brandt <16630701+sophiabrandt@users.noreply.github.com>
  • Loading branch information
suryanshsingh2001 and sophiabrandt authored Oct 3, 2023
1 parent 2c81a74 commit 7d619cf
Show file tree
Hide file tree
Showing 4 changed files with 129 additions and 0 deletions.
104 changes: 104 additions & 0 deletions Art/Suryansh/rocket.css
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);
}
}
Binary file added Art/Suryansh/rocket.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions Art/Suryansh/rocket.html
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>
7 changes: 7 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ let cards = [
author: 'Joy',
githubLink: 'https://github.com/royranger'
},
{
artName: 'Rocket',
pageLink: './Art/Suryansh/rocket.html',
imageLink: './Art/Suryansh/rocket.gif',
author: 'Suryansh',
githubLink: 'https://github.com/suryanshsingh2001'
},
{
artName: 'AnimateIbaad',
pageLink: './Art/Ibaad/animate.html',
Expand Down

0 comments on commit 7d619cf

Please sign in to comment.