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

CSS

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

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

    background-image: linear-gradient(to top, black(.1), black(.1)),
                      linear-gradient(to right, seagreen, seagreen),
                      linear-gradient(to bottom, darken(silver,10) 50%, silver 50%),
                      radial-gradient(circle, darken(seagreen,10) 25%,
                                              seagreen 25%,
                                              seagreen 50%,
                                              transparent 50%),
                      radial-gradient(circle, darken(seagreen,10) 25%,
                                              seagreen 25%,
                                              seagreen 50%,
                                              transparent 50%)
    background-repeat: no-repeat
    background-size: 50px 15px,
                     50px 100%,
                     70px 10px,
                     30px 30px,
                     30px 30px
    background-position: center 92%,
                         center 0,
                         center 95%,
                         -2px 60%,
                         103% 60%

    &:before
      width: 100px
      height: 135px
      left: 15px
      background-color: seagreen
      background-image: linear-gradient(to bottom, #222, #222),
                        radial-gradient(ellipse, #222 50%, transparent 50%),
                        radial-gradient(ellipse, #222 50%, transparent 50%),
                        radial-gradient(ellipse, #222 50%, transparent 50%),
                        radial-gradient(ellipse, #222 50%, transparent 50%),
                        radial-gradient(ellipse, #222 50%, transparent 50%),
                        radial-gradient(circle, #222 15%,
                                                tomato 15%,
                                                tomato 30%,
                                                white 30%,
                                                white 50%,
                                                transparent 50%),
                        radial-gradient(circle, #222 15%,
                                                tomato 15%,
                                                tomato 30%,
                                                white 30%,
                                                white 50%,
                                                transparent 50%),
                        linear-gradient(seagreen, seagreen),
                        radial-gradient(circle, seagreen 40%,
                                                darken(seagreen,10) 40%,
                                                darken(seagreen,10) 53%,
                                                transparent 42%),
                        linear-gradient(#333, #333)
      background-repeat: no-repeat
      background-size: 100% 15px,
                       15px 40px,
                       15px 40px,
                       15px 40px,
                       15px 40px,
                       15px 40px,
                       24px 24px,
                       24px 24px,
                       25px 13px,
                       25px 25px,
                       40px 2px
      background-position: 0 0,
                           -5px -10px,
                           6px -14px,
                           17px -12px,
                           93% -14px,
                           106% -10px,
                           18px 70px,
                           56px 70px,
                           center 70%,
                           center 75%,
                           center 85%
      border-radius: 6px 6px 15px 15px

    &:after
      width: 35px
      height: 12px
      left: 28px
      top: 68px
      background-color: #222
      border-radius: 4px
      box-shadow: 38px 0 0 #222,
                  -2px -8px 0 4px darken(seagreen,4),
                  30px -8px 0 4px darken(seagreen,4),
                  41px -8px 0 4px darken(seagreen,4)
              
            
!

JS

              
                
              
            
!
999px

Console