<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Rocket Emoji</title>
<!-- Stylesheets -->
<link rel="stylesheet" href="styles.css">
</head>
<body class="stars">
<div class="container">
<div class="rocket_body">
<div class="rocket_nose_cone"></div>
<div class="rocket_ring_container">
<div class="rocket_ring"></div>
</div>
<div class="rocket_window"></div>
<div class="rocket_body_shadow"></div>
</div>
<div class="rocket_nozzle_container"></div>
<div class="rocket_middle_fin_dark">
<div class="rocket_middle_fin_light"></div>
</div>
<div class="rocket_left_fin_light_container">
<div class="rocket_left_fin_light_border"></div>
<div class="rocket_left_fin_light"></div>
</div>
<div class="rocket_left_fin_dark_container">
<div class="rocket_left_fin_dark"></div>
</div>
<div class="rocket_right_fin_dark_container">
<div class="rocket_right_fin_dark_border"></div>
<div class="rocket_right_fin_dark"></div>
</div>
<div class="rocket_right_fin_container">
<div class="rocket_right_fin"></div>
</div>
<div class="rocket_flame"></div>
</div>
</body>
</html>
body {
margin: 0;
background: #000000ff;
display: grid;
place-items: center;
height: 100vh;
}
.container {
width: 300px;
height: 400px;
position: relative;
}
.rocket_body {
position: absolute;
top: 90px;
left: 110px;
width: 120px;
height: 260px;
background: #8eafc0ff;
border-radius: 90% 90% 70% 70%;
rotate: 45deg;
overflow: hidden;
z-index: -2;
}
.rocket_body_shadow {
position: absolute;
top: -25px;
left: -40px;
width: 120px;
height: 320px;
border: solid 22px #0008;
border-radius: 90% 90% 70% 70%;
transform: rotate(5deg);
z-index: 0;
}
.rocket_nose_cone {
position: absolute;
top: -60px;
left: -10px;
width: 140px;
height: 140px;
background: #d83e22ff;
border-radius: 50%;
z-index: -1;
}
.rocket_ring_container {
position: absolute;
top: 150px;
rotate: 180deg;
width: 140px;
height: 70px;
overflow: hidden;
}
.rocket_ring {
width: 140px;
height: 140px;
border: solid 15px #6695a4ff;
border-radius: 50%;
}
.rocket_window {
position: absolute;
top: 100px;
left: 30px;
width: 40px;
height: 40px;
border: solid 10px #dfdfdfff;
border-radius: 50%;
background: #40545fff;
}
.rocket_nozzle_container {
position: absolute;
top: 280px;
left: 57px;
rotate: 45deg;
background: #838484ff;
width: 60px;
height: 50px;
border-radius: 30%;
z-index: -3;
}
.rocket_middle_fin_dark {
position: absolute;
top: 268px;
left: 48px;
height: 120px;
width: 30px;
rotate: 45deg;
border-radius: 90% 90% 60% 60%;
background: #9e2724ff;
overflow: hidden;
}
.rocket_middle_fin_light {
position: absolute;
top: 0px;
left: -15px;
height: 120px;
width: 30px;
background: #cd292fff;
}
.rocket_left_fin_dark_container {
position: absolute;
top: 250px;
left: -30px;
height: 40px;
width: 120px;
transform: rotate(-20deg);
z-index: -4;
}
.rocket_left_fin_dark {
height: 40px;
width: 120px;
background: #a02422ff;
clip-path: polygon(0% 30%, 50% 0%, 100% 30%, 80% 100%, 20% 100%);
}
.rocket_left_fin_light_container {
position: absolute;
top: 237px;
left: -28px;
height: 40px;
width: 120px;
transform: rotate(-20deg);
z-index: -5;
}
.rocket_left_fin_light {
height: 40px;
width: 120px;
background: #c82c30ff;
clip-path: polygon(0% 30%, 50% 0%, 100% 30%, 80% 100%, 20% 100%);
}
.rocket_left_fin_light_border {
position: absolute;
top: 10px;
left: -2px;
width: 20px;
height: 15px;
background: #c82c30ff;
transform: skew(-26deg);
z-index: -5;
}
.rocket_right_fin_container {
position: absolute;
top: 330px;
left: 75px;
height: 40px;
width: 120px;
transform: rotate(110deg);
z-index: -4;
}
.rocket_right_fin {
height: 40px;
width: 120px;
background: #cb2c31ff;
clip-path: polygon(0% 30%, 50% 0%, 100% 30%, 80% 100%, 20% 100%);
}
.rocket_right_fin_dark_container {
position: absolute;
top: 330px;
left: 85px;
height: 40px;
width: 120px;
transform: rotate(110deg);
z-index: -4;
}
.rocket_right_fin_dark {
height: 40px;
width: 120px;
background: #98271cff;
clip-path: polygon(0% 30%, 50% 0%, 100% 30%, 80% 100%, 20% 100%);
}
.rocket_right_fin_dark_border {
position: absolute;
top: 14px;
left: 106px;
width: 15px;
height: 10px;
background: #a1241fff;
transform: rotate(-20deg);
z-index: -5;
}
.rocket_flame {
position: absolute;
top: 297px;
left: -10px;
width: 65px;
height: 65px;
background: #fff45eff;
border: solid 20px #e79a37ff;
/* border-radius: 2% 87% 45% 85%; */
border-radius: 0% 85% 45% 85%;
transform: rotate(-90deg);
z-index: -4;
animation: flame_animation 2s infinite;
}
.stars {
background-image: radial-gradient(
2.5px 2.5px at 10% 17%,
white,
rgba(255, 255, 255, 0)
),
radial-gradient(1px 1px at 20% 22%, white, rgba(255, 255, 255, 0)),
radial-gradient(2px 2px at 36% 27%, white, rgba(255, 255, 255, 0)),
radial-gradient(1.5px 1.5px at 42% 76%, white, rgba(255, 255, 255, 0)),
radial-gradient(2px 2px at 55% 24%, white, rgba(255, 255, 255, 0)),
radial-gradient(2.5px 2.5px at 60% 31%, white, rgba(255, 255, 255, 0)),
radial-gradient(2px 2px at 77% 46%, white, rgba(255, 255, 255, 0)),
radial-gradient(2.5px 2.5px at 83% 51%, white, rgba(255, 255, 255, 0)),
radial-gradient(1px 1px at 95% 15%, white, rgba(255, 255, 255, 0)),
radial-gradient(1px 1px at 21% 85%, white, rgba(255, 255, 255, 0)),
radial-gradient(2px 2px at 33% 61%, white, rgba(255, 255, 255, 0)),
radial-gradient(1.5px 1.5px at 41% 75%, white, rgba(255, 255, 255, 0)),
radial-gradient(2px 2px at 56% 54%, white, rgba(255, 255, 255, 0)),
radial-gradient(2.5px 2.5px at 61% 20%, white, rgba(255, 255, 255, 0)),
radial-gradient(1px 1px at 50% 24%, white, rgba(255, 255, 255, 0)),
radial-gradient(2px 2px at 46% 60%, white, rgba(255, 255, 255, 0)),
radial-gradient(1.5px 1.5px at 31% 74%, white, rgba(255, 255, 255, 0)),
radial-gradient(2px 2px at 66% 55%, white, rgba(255, 255, 255, 0)),
radial-gradient(2.5px 2.5px at 70% 71%, white, rgba(255, 255, 255, 0)),
radial-gradient(1.5px 1.5px at 15% 72%, white, rgba(255, 255, 255, 0)),
radial-gradient(2px 2px at 90% 71%, white, rgba(255, 255, 255, 0)),
radial-gradient(1px 1px at 81% 16%, white, rgba(255, 255, 255, 0));
}
@keyframes flame_animation {
0% {
transform: scale(1) rotate(-90deg);
opacity: 1;
}
50% {
transform: scale(0.9) rotate(-90deg);
opacity: 0.8;
}
100% {
transform: scale(1) rotate(-90deg);
opacity: 1;
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.