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

              
                <div class="entry hamburger"></div>
              
            
!

CSS

              
                black(alpha)
  rgba(0,0,0,alpha)

body
  background-color: darken(beige,3)
  position: relative
  height: 100vh
  text-align: center
  
.entry
  position: absolute
  left: 50%
  top: 50%

  &:before,
  &:after
    display: block
    content: ''
    position: absolute
    
  &.hamburger
    width: 100px
    height: 34px
    margin-left: -(@width/2 + 3px)
    margin-top: -50px
    border-radius: 50px 50px 10px 10px
    background-color: tan
    background-image: radial-gradient(wheat 15%, transparent 16%),
                      radial-gradient(wheat 15%, transparent 16%)
    background-size: 10px 10px
    background-position: 0 0, 5px 5px
    border: 3px solid darken(tan,20)

    &:before
      width: 100px
      height: 15px
      margin-left: -3px
      top: 73px
      border-radius: 8px
      background-color: tan
      border: 3px solid darken(tan,20)
      box-shadow: 0 -18px 0 -2px saddlebrown,
                  0 -36px 0 -2px saddlebrown
    
    &:after
      width: 120px
      height: 100px
      margin-left: -10px
      background-repeat: no-repeat
      background-image: linear-gradient(lighten(gold,10), lighten(gold,10)),
                        linear-gradient(150deg, lighten(gold,10) 30%, transparent 30%),
                        linear-gradient(-150deg, lighten(gold,10) 30%, transparent 30%),
                        linear-gradient(lighten(gold,10), lighten(gold,10)),
                        linear-gradient(150deg, lighten(gold,10) 30%, transparent 30%),
                        linear-gradient(-150deg, lighten(gold,10) 30%, transparent 30%)
      background-size: 96px 3px,
                       30px 16px,
                       30px 16px,
                       96px 3px,
                       30px 16px,
                       30px 16px
      background-position: 12px 55px,
                           40px 55px,
                           10px 55px,
                           12px 37px,
                           80px 37px,
                           50px 37px
              
            
!

JS

              
                
              
            
!
999px

Console