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 zombie"></div>
              
            
!

CSS

              
                black(alpha)
  rgba(0,0,0,alpha)
  
body
  background-color: #555
  position: relative
  height: 100vh
  
.entry
  position: absolute
  left: 50%
  top: 50%

  &:before,
  &:after
    display: block
    content: ''
    position: absolute
    
  &.zombie
    width: 130px
    height: 160px
    margin-left: -(@width/2)
    margin-top: -(@height/2)

    background-image: linear-gradient(to top, black(.15), black(.15)),
                      linear-gradient(to right, palegreen, palegreen),
                      radial-gradient(circle, lighten(seagreen,20) 25%,
                                              palegreen 25%,
                                              palegreen 50%,
                                              transparent 50%),
                      radial-gradient(circle, lighten(seagreen,20) 25%,
                                              palegreen 25%,
                                              palegreen 50%,
                                              transparent 50%),
                      radial-gradient(circle, pink 50%, transparent 50%),
                      radial-gradient(circle, pink 50%, transparent 50%),
                      radial-gradient(circle, pink 50%, transparent 50%),
                      radial-gradient(circle, pink 50%, transparent 50%)
    background-repeat: no-repeat
    background-size: 50px 15px,
                     50px 80%,
                     30px 30px,
                     30px 30px,
                     40px 40px,
                     40px 40px,
                     40px 40px,
                     40px 40px
    background-position: center 92%,
                         center 100%,
                         -2px 60%,
                         103% 60%,
                         30px -5px,
                         50px -5px,
                         65px 0,
                         78px 14px

    &:before
      width: 100px
      height: 135px
      left: 15px
      background-image: radial-gradient(circle, #222 15%,
                                                gold 15%,
                                                gold 30%,
                                                white 30%,
                                                white 50%,
                                                transparent 50%),
                        radial-gradient(circle, #222 15%,
                                                gold 15%,
                                                gold 30%,
                                                white 30%,
                                                white 50%,
                                                transparent 50%),
                        radial-gradient(ellipse, black(.2) 50%, transparent 50%),
                        radial-gradient(ellipse, black(.2) 50%, transparent 50%),
                        linear-gradient(palegreen, palegreen),
                        radial-gradient(circle, palegreen 40%,
                                                lighten(seagreen,20) 40%,
                                                lighten(seagreen,20) 53%,
                                                transparent 42%),
                        linear-gradient(25deg, palegreen 80%, transparent 80%)
      background-repeat: no-repeat
      background-size: 24px 24px,
                       24px 24px,
                       50px 40px,
                       50px 40px,
                       25px 13px,
                       25px 25px,
                       100% 100%
      background-position: 18px 67px,
                           56px 67px,
                           4px 57px,
                           44px 57px,
                           center 70%,
                           center 75%,
                           0 0
      border-radius: 20px 20px 30px 30px

    &:after
      width: 42px
      height: 23px
      margin-left: -(@width/2)
      left: 50%
      top: 70%
      background-color: black(.3)
      background-image: repeating-linear-gradient(to right, white,
                                                            white 4px,
                                                            transparent 4px,
                                                            transparent 7px),
                        repeating-linear-gradient(to right, white,
                                                            white 4px,
                                                            transparent 4px,
                                                            transparent 7px),
                        linear-gradient(to right, black(.2), black(.2))
      background-repeat: repeat-x,
                         repeat-x,
                         no-repeat
      background-size: 100% 6px,
                       100% 6px,
                       31px 15px
      background-position: 1px 2px,
                           1px 18px,
                           5px 5px
      border-radius: 6px
      box-shadow: -8px 5px 0 palegreen,
                  8px 5px 0 palegreen
              
            
!

JS

              
                
              
            
!
999px

Console