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

              
                <svg width="100%" height="100%">
   <pattern id="tva-hourglass-pattern" x="0" y="0" patternUnits="userSpaceOnUse" width="129" height="134" viewBox="0 0 86 89"> 
      <g id="hourglasses">
        <polygon points="23.13 27.926 30.115 40.025 13.886 40.025 37 0 7 0 18.575 20.047 20.87 16.071 13.886 3.975 30.115 3.975 7 44 37 44 25.425 23.951 23.13 27.926"/>
        <polygon points="58.266 23.13 46.168 30.115 46.168 13.886 86.193 37 86.193 7 66.146 18.575 70.121 20.87 82.218 13.886 82.218 30.115 42.193 7 42.193 37 62.241 25.425 58.266 23.13"/>
        <polygon points="63.062 61.053 56.077 48.954 72.307 48.954 49.193 88.979 79.193 88.979 67.618 68.933 65.323 72.908 72.307 85.004 56.077 85.004 79.193 44.979 49.193 44.979 60.767 65.028 63.062 61.053"/>
        <polygon points="27.926 65.849 40.025 58.864 40.025 75.093 0 51.979 0 81.979 20.047 70.405 16.071 68.109 3.975 75.093 3.975 58.864 44 81.979 44 51.979 23.951 63.554 27.926 65.849"/>
     </g>
   </pattern>
   
   <!-- The canvas for the pattern -->
   <rect x="0" y="0" width="100%" height="100%" fill="url(#tva-hourglass-pattern)" />
  
</svg>
              
            
!

CSS

              
                body, html {
  height: 100%;
  background: rgb(158,133,60);
background: radial-gradient(circle, rgba(158,133,60,1) 0%, rgba(128,95,33,1) 100%);
}

#hourglasses {
  fill: rgb(128,95,33);
fill: radial-gradient(circle, rgba(128,95,33,1) 0%, rgba(94,63,19,1) 100%);
}
              
            
!

JS

              
                
              
            
!
999px

Console