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

              
                <link href="https://fonts.googleapis.com/css?family=Quicksand:400,700" rel="stylesheet"> 

<div class="wrapper">
  <h3>Original Image</h3>
  <p>
    This image contains many shades of red and the transition between the colors is smooth.
  </p>
  <svg width="500" height="335" viewBox="0 0 500 335">
  <image xlink:href="https://images.unsplash.com/photo-1507150080056-79542bdb9c59?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&ixid=eyJhcHBfaWQiOjE0NTg5fQ&s=bf395c0219193d28341bc6ad9aba0500" width="100%" height="100%" x="0" y="0"></image>
</svg>
</div>

<div class="wrapper">
  <h3>Posterized Image</h3>
  <p>The number of shades of red in every pixel in this image have been decreased to three.</p>
<svg width="500" height="335" viewBox="0 0 500 335">
  <filter id="posterize">
      <feComponentTransfer>
          <feFuncR type="discrete" tableValues="0 .5 1"/>
      </feComponentTransfer>
  </filter>
  
  <image xlink:href="https://images.unsplash.com/photo-1507150080056-79542bdb9c59?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&ixid=eyJhcHBfaWQiOjE0NTg5fQ&s=bf395c0219193d28341bc6ad9aba0500" width="100%" height="100%" x="0" y="0" filter="url(#posterize)"></image>
</svg>
</div>
              
            
!

CSS

              
                svg {
  display: inline-block;
  border: 5px solid #eee;
}

.wrapper {
  margin: 5vw;
  background: #fff;
  padding: 3vw 5vw;
  font-family: Quicksand;
}

body {
  background: #2c2c2c;
}
              
            
!

JS

              
                
              
            
!
999px

Console