Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="roket-container">
	
	<div class="wing-left"></div>
	<div class="wing-right"></div>
	<div class="exhaust"></div>
	
	<div class="capsule">
		<div class="top">
			<div class="shadow"></div>
		</div>
		<div class="base"></div>
	</div>
	
	<div class="window-big"></div>
	<div class="window-small"></div>
	
	<div class="fire-1"></div>
	<div class="fire-2"></div>
	<div class="fire-3"></div>
	<div class="fire-4"></div>
	
	<div class="spark-1"></div>
	<div class="spark-2"></div>
	<div class="spark-3"></div>
	<div class="spark-4"></div>
	
	<div class="star star-1"></div>
	<div class="star star-2"></div>
	<div class="star star-3"></div>
	<div class="star star-4"></div>
	<div class="star star-5"></div>
	<div class="star star-6"></div>
	<div class="star star-7"></div>
	<div class="star star-8"></div>
	<div class="star star-9"></div>
	<div class="star star-10"></div>
	<div class="star star-11"></div>
	<div class="star star-12"></div>
	<div class="star star-13"></div>
	<div class="star star-14"></div>
	<div class="star star-15"></div>
	<div class="star star-16"></div>
	<div class="star star-17"></div>
	<div class="star star-18"></div>
	<div class="star star-19"></div>
	<div class="star star-20"></div>
	
	
</div>
              
            
!

CSS

              
                *,*:before,*:after {box-sizing:border-box;}
body {background:#1d1d1d;}

.roket-container {
	width: 202px; height: 380px;
/*   background:#000; */
	position: absolute; 
	left: 0; top: 0; right: 0; bottom: 0;
	margin: auto;
	animation: vibration 0.2s infinite;
}
@keyframes vibration {
	0% {transform: translate(0,0) rotate(45deg);}
	50% {transform: translate(1px,-1px) rotate(45deg);}
	100% {transform: translate(0,0) rotate(45deg);}
}

.capsule {
	width: 111px; height: 150px;
	position: absolute;
	left: 46px; top: 5px;
	overflow: hidden;
  z-index:100;
}
.capsule .top {
	position: absolute;
	left: 0; width: 0; height: 0; padding: 0;
	border-bottom: 62px solid #f3f3f3;
	border-left: 56px solid transparent;
	border-right: 56px solid transparent;
}

.capsule .top:after {
	content:'';
	position: absolute;
	left: 25px; top: -14px;
	width: 0; height: 0;
	border-bottom: 84px solid #1d1d1d;
	border-left: 0px solid transparent;
	border-right: 156px solid transparent;
	transform: skew(42deg);
}

.capsule .top .shadow {
	position: absolute;
	width: 0; height: 0;
	border-bottom: 90px solid #e0e0e0;
	border-left: 20px solid transparent;
	border-right: 80px solid transparent;
	transform: skew(25deg);
}

.capsule .base {
	position: absolute;
	left: 0; top: 62px;
	width: 112px; height: 99px;
	background:linear-gradient(to right, #f3f3f3 63%, #e0e0e0 63%);
}

.wing-left {
	position: absolute;
	top: 82px; left: 16px;
	height: 103px; width: 0; padding: 0;
	border-right: 38px solid #743388;
	border-top: 21px solid transparent;
	border-bottom: 19px solid transparent;
	transform: rotate(10deg) skew(5deg);
}
.wing-left:after {
	content:'';
	position: absolute; 
	bottom:-50px;
	width: 0; height: 0;
	border-top: 20px solid transparent;
	border-right: 50px solid #1d1d1d;
	border-bottom: 50px solid transparent;
}

.wing-right {
	position: absolute;
	height: 97px; width: 0; padding: 0;
	top: 67px; right: 17px;
	border-right: 40px solid #743388;
	border-top:0px solid transparent;
	border-bottom:15px solid transparent;
	transform: rotate(-10deg) skew(-5deg);
}
.wing-right:after {
	content:'';
	position: absolute;
	top:-33px; left: -58px;
	width: 101px; height: 0;
	border-top: 23px solid transparent;
	border-right: 68px solid #1d1d1d;
	border-bottom: 45px solid transparent;
}

.exhaust {
	position: absolute;
	width: 101px; height: 0;
	top: 150px; left: 51px;
	border-top: 23px solid #743388;
	border-left: 9px solid transparent;
	border-right: 8px solid transparent;
  z-index:100;
}


.window-big {
	width: 70px; height: 70px;
	background-color:#743388;
	border-radius: 50%;
	position: absolute;
	top: 57px; left: 66px;
  z-index:110;
}
.window-small {
	width: 44px; height: 44px;
	background-color: #272425;
	border-radius: 50%;
	position: absolute;
	left: 79px; top: 70px;
  z-index:120;
}

.fire-1 {
  position:absolute;
  left: 64px; top: 169px;
  width: 70px; height: 70px;
  background:linear-gradient(135deg,#ef8832 50%, #e82134 50%);
  transform: rotate(-40deg) skew(1deg, -11deg);
  animation: main_fire 0.1s ease-in infinite;
}
@keyframes main_fire {
	0% {transform: translate(0, 5px) scale(1.1,1) rotate(-33deg) skew(0deg, -30deg) }
	100% {transform: translate(0, 0px) scale(1.1,2) rotate(-33deg) skew(0deg, -30deg) }
}
.fire-2 {
  position:absolute;
  top: 230px; left: 63px;
  width: 33px; height: 33px;
  background:linear-gradient(135deg, #e82134 50%, #ef8832 50%);
  transform: rotate(-33deg) skew(0deg, -30deg);
  animation: fire2 0.3s ease-in infinite;
  z-index:200;
}
.fire-3 {
  position:absolute;
  top: 196px; left: 50px;
  width: 22px; height: 22px;
  background:linear-gradient(135deg, #e82134 50%, #ef8832 50%);
  transform: rotate(-33deg) skew(0deg, -30deg);
  animation: fire2 0.3s ease-in infinite;
  animation-delay: 0.2s;
}
.fire-4 {
  position:absolute;
  top: 200px; left: 126px;
  width: 22px; height: 22px;
  background:linear-gradient(135deg, #e82134 50%, #ef8832 50%);
  transform: rotate(-33deg) skew(0deg, -30deg);
  animation: fire2 0.3s ease-in infinite;
}

@keyframes fire2 {
	0% {transform: translate(0, -10px) scale(1) rotate(-33deg) skew(0deg, -30deg); opacity:1;}
	100% {transform: translate(0, 50px) scale(0.7) rotate(-33deg) skew(0deg, -30deg); opacity:0;}
}
.spark-1 {
  position:absolute; bottom: 77px;
  width: 12px; height: 12px; 
  background: #ef8b32;
  animation: spark 0.2s ease-in infinite;
}
.spark-2 {
  position:absolute; 
  bottom: 68px; left: 132px;
  width: 10px; height: 10px;
  background:#ef8b32;
  animation: spark 0.2s ease-in infinite;
}
.spark-3 {
  position:absolute;
  bottom: 80px; left: 109px;
  width: 10px; height: 10px;
  background:#ef8b32;
  animation: spark 0.2s ease-in infinite;
}
.spark-4 {
  position:absolute;
  bottom: 20px; left: 83px;
  width: 12px; height: 12px;
  background:#ef8b32;
  animation: spark 0.2s ease-in infinite;
}
.star {
   position: absolute;width: 4px;height: 20px;
   border-radius:50%;
   background:linear-gradient(135deg, #fc97e9 20%, #fafc9f 80%, #bdf4f9 100%) fixed;
  z-index:9999;
  animation: hyperspace 0.4s infinite;
  
}
.star-1 {left:50px; top:10px; animation-delay:0.1s;}
.star-2 {left:250px; top:-20px; animation-delay:0.12s;}
.star-3 {left:200px; top:30px; animation-delay:0.2s;}
.star-4 {left:100px; top:-40px; animation-delay:0.1s;}
.star-5 {left:-100px; top:50px; animation-delay:0.3s;}
.star-6 {left:220px; top:80px; animation-delay:0.15s;}
.star-7 {left:240px; top:90px; animation-delay:0.22s;}
.star-8 {left:-40px; top:50px; animation-delay:0.18s;}
.star-9 {left:-80px; top:70px; animation-delay:0.1s;}
.star-10 {left:-50px; top:180px; animation-delay:0.4s;}
.star-11 {left:-70px; top:200px; animation-delay:0.3s;}
.star-12 {left:-20px; top:220px; animation-delay:0.35s;}
.star-13 {left:200px; top:180px; animation-delay:0.22s;}
.star-14 {left:220px; top:150px; animation-delay:0.18s;}
.star-15 {left:180px; top:200px; animation-delay:0.19s;}
.star-16 {left:-90px; top:280px; animation-delay:0.1s;}
.star-17 {left:-10px; top:250px; animation-delay:0.12s;}
.star-18 {left:-60px; top:120px; animation-delay:0.17s;}
.star-19 {left:180px; top:280px; animation-delay:0.24s;}
.star-20 {left:200px; top:250px; animation-delay:0.26s;}

@keyframes hyperspace {
	0% {transform: translate(0, -100px) scale(1,0); opacity:1; }
	100% {transform: translate(0, 100px) scale(1,1); opacity:0;  }
}

@keyframes spark {
	0% {transform: translate(0, -10px) scale(1) rotate(-33deg) skew(0deg, -30deg); opacity:1;}
	100% {transform: translate(0, 50px) scale(0.7) rotate(-33deg) skew(0deg, -30deg); opacity:0;}
}
e(-33deg) skew(0deg, -30deg); opacity:0;}
}


              
            
!

JS

              
                
              
            
!
999px

Console