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="http://codersblock.com/assets/toast-16bit.png" alt="toast">
<div class="dialog">
  <div>AND SO TOAST FLEW OFF</div>
  <div>INTO THE STARS. FOREVER.</div>
  <div>HE NEVER CAME BACK...</div>
</div>
              
            
!

CSS

              
                body {
	margin: 0;
	background-color: #4b6473;
	background-image:
    url(http://codersblock.com/assets/stars1.png),
    url(http://codersblock.com/assets/stars2.png),
    url(http://codersblock.com/assets/stars3.png);
	animation:
    stars 32s linear infinite,
	  fade 10s steps(5) 16s forwards;
}
img {
	position: absolute;
  top: 50%;
  left: 50%;
  margin: -184px 0 0 -64px;
	animation: toast 6s ease infinite;
}
.dialog {
	position: absolute;
  top: 50%;
  left: 50%;
  margin: 24px 0 0 -300px;
	width: 552px;
	padding: 12px;
	background-color: #fff;
	border: solid 12px #000;
  font: bold 22px/36px "Press Start 2P", monospace;
}
.dialog div {
	overflow: hidden;
	white-space: nowrap;
	width: 0;
	animation: dialog 5s steps(24) forwards;
}
.dialog div:nth-child(1) {
	animation-delay: 0s;
}
.dialog div:nth-child(2) {
	animation-delay: 6s;
}
.dialog div:nth-child(3) {
	animation-delay: 12s;
}

@keyframes toast {
	50% { transform: translateY(64px); }
	100% { transform: translateY(0); }
}
@keyframes dialog {
	100% { width: 100%; }
}
@keyframes stars {
	100% { background-position:
      -2048px 512px,
      -4096px 512px,
      -8192px 512px; }
}
@keyframes fade {
	100% { background-color: #1d272d; }
}
              
            
!

JS

              
                
              
            
!
999px

Console