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 includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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

              
                <?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="250px"
	 height="250px" viewBox="0 0 250 250" enable-background="new 0 0 250 250" xml:space="preserve">
<g id="bottom">
	<g id="Layer_1_1_">
	</g>
	<polygon fill="none" stroke="#000000" stroke-miterlimit="10" points="21.077,206.628 124.999,26.628 228.923,206.628 	"/>
</g>
<g id="middle">
	<polygon fill="none" stroke="#000000" stroke-miterlimit="10" points="55.717,188 125,68 194.281,188 	"/>
</g>
<g id="top">
	<polygon fill="none" stroke="#000000" stroke-miterlimit="10" points="90.358,169.735 125,109.735 159.641,169.735 	"/>
</g>
</svg>

              
            
!

CSS

              
                body {
  background: #EE7674;
}
svg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

#top polygon {
  fill: #F49E4C;
  stroke-width: 3px;
  animation: 3s scale infinite alternate;
  transform-origin: 50% 50%;
  animation-delay: 2s;
}
#middle polygon {
  fill: #565676;
  stroke-width: 3px;
  animation: 4s scale infinite alternate;
  transform-origin: 50% 50%;
  animation-delay: 1s;
}
#bottom polygon {
  fill: #F5EE9E;
  stroke-width: 3px;
  animation: 5s scale infinite alternate;
  transform-origin: 50% 50%;
}

@keyframes scale {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0.5);
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console