Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <span>Hey there!
  <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 512 512">
    <path fill="currentColor" d="M256 0a256 256 0 1 1 0 512 256 256 0 0 1 0-512ZM97 348a9 9 0 0 1 13-12c38 25 89 40 146 40s108-15 146-40a9 9 0 0 1 13 12c-31 53-91 88-159 88s-128-35-159-88Zm64-258c16 0 30 37 30 83s-14 83-30 83-29-37-29-83 13-83 29-83Zm190 0c16 0 30 37 30 83s-14 83-30 83-29-37-29-83 13-83 29-83Z" />
  </svg>
</span>
              
            
!

CSS

              
                span {
  font-size: 4em;
  font-weight: bold;
  font-family: sans-serif;
  animation: colorRotate 5s linear 0s infinite;
}
svg {
  height: .75em;
    width:.75em;
}
@keyframes colorRotate {
  from {
    color: #6666ff;
  }
  10% {
    color: #0099ff;
  }
  50% {
    color: #00ff00;
  }
  75% {
    color: #ff3399;
  }
  100% {
    color: #6666ff;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console