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

              
                <img src="https://i.imgur.com/Uia4i.png?1"/>

<div class="perspective">

  
<article>
  <br><br><br><br><br><br><br>  
  <br><br><br><br><br><br><br>
   
  <h1>Episode IV</h1>
<h2>A NEW HOPE</h2>


<p>

It's just mind-blowingly awesome. I apologize, and I wish I was more articulate, but it's hard to be articulate when your mind's blown—but in a very good way.<br><br>

It has been said that astronomy is a humbling and character-building experience. There is perhaps no better demonstration of the folly of human conceits than this distant image of our tiny world. To me, it underscores our responsibility to deal more kindly with one another, and to preserve and cherish the pale blue dot, the only home we've ever known.<br><br>

From this day forward, Flight Control will be known by two words: 'Tough' and 'Competent.' Tough means we are forever accountable for what we do or what we fail to do. We will never again compromise our responsibilities. Every time we walk into Mission Control we will know what we stand for. Competent means we will never take anything for granted. We will never be found short in our knowledge and in our skills. Mission Control will be perfect. When you leave this meeting today you will go to your office and the first thing you will do there is to write 'Tough and Competent' on your blackboards. It will never be erased. Each day when you enter the room these words will remind you of the price paid by Grissom, White, and Chaffee. These words are the price of admission to the ranks of Mission Control.<br><br>

Let's light this fire one more time, Mike, and witness this great nation at its best.<br><br><br><br><br><br><br><br><br><br><br><br><br><br></p>
  
</article>
</div>
              
            
!

CSS

              
                // View it in full page mode.
html {height:100%;}
body {
background:#000;
  overflow:hidden;
  background:url(https://i.imgur.com/mDODa.gif?1);
  animation: stars 122s infinite linear;
 
}

.perspective {
  width:100%;
  height:100%;
  perspective:2000;
}
.title {color:#64d4fb;}

h1 {text-align:center;}

h2 {
  text-align:center;
}

article {
position:absolute;
top:390px;
left:50%;
display:block;
font-family:'helvetica neue';
color:#E9C660;
width:500px;
text-align:justify;
font-size:1.5em;
margin-left:-250px;
line-height:1.5em;
letter-spacing:.2em;
transform:rotatex(40deg);
animation: textMove 60s linear infinite;
}

img {
  position:absolute;
	top:50%;
  left:50%;
  margin-left:-500px;
  margin-top:-234px;
	z-index:1000;
  transform-origin: center center;
  animation: sw 13s forwards;
	}

@keyframes textMove {
	to {top:-2000px;}
}

@keyframes stars {
  from {background-position: 5% 5%}
  to{background-position: 1300% 5%}
}


@keyframes sw {
	to {transform:scale(0);}
}



              
            
!

JS

              
                
              
            
!
999px

Console