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

              
                .container
  .border
    .content
              
            
!

CSS

              
                body
  width 100%
  height 100%
  margin 0
  padding 0
  background #dfdfc3
  overflow hidden
  
  .container,
  .border
    width 20vh
    height 20vh
    background #292929
    position absolute
    top 50%
    left 50%
    overflow hidden
    transform translate( -50%, -50% )
    clip-path polygon(0% 50%, 25% 95%, 75% 95%, 100% 50%,  75% 5%, 25% 5% )
    clip-path polygon( 50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%)
      
    .border
      width 90%
      height 90%
      
      .content
        width 150%
        height 100%
        background #dfdfc3
        position absolute
        top 50%
        left 50%
        animation contentAnimation 2s infinite linear
        transform-origin center top
      
@keyframes contentAnimation
  0%
    transform translateX( -50% ) rotate( 0deg )
  100%
    transform translateX( -50% ) rotate( -360deg )
              
            
!

JS

              
                
              
            
!
999px

Console