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

CSS

              
                body
  background-color: mediumturquoise
  position: relative
  height: 100vh
  
.entry
  position: absolute
  left: 50%
  top: 50%

  &:before,
  &:after
    display: block
    content: ''
    position: absolute
    
  &.panda-cub
    width: 210px
    height: 160px
    margin-left: -(@width/2 + 5px)
    margin-top: -(@height/2)
    background-color: white
    background-image: radial-gradient(ellipse at 50% 60%, #333 12px, transparent 12px),
                      radial-gradient(ellipse at 50% 80%, #555 6px, transparent 6px)
    border-top-left-radius: 110px
    border-top-right-radius: 110px
    border-bottom-left-radius: 110px 60px
    border-bottom-right-radius: 110px 60px
    
    border: 5px solid #333
    border-bottom-width: 10px
    box-shadow: inset 10px -10px 0 #eee
    
    &:before
      width: 70px
      height: 40px
      left: 29px
      top: 55px
      background-color: #333
      background-image: radial-gradient(circle at 51px 20px, white 3px, transparent 3px), radial-gradient(circle at 46px 20px, #333 7px, transparent 7px), radial-gradient(circle at 45px 20px, white 10px, transparent 10px)
      border-radius: 50% 50% 45% 42%
      transform: rotate(-45deg)
      box-shadow: 10px -72px 0 -4px #333
    
    &:after
      width: 70px
      height: 40px
      left: 111px
      top: 55px
      background-color: #333
      background-image: radial-gradient(circle at 24px 15px, white 3px, transparent 3px), radial-gradient(circle at 24px 20px, #333 7px, transparent 7px), radial-gradient(circle at 25px 20px, white 10px, transparent 10px)
      border-radius: 50% 50% 42% 45%
      transform: rotate(45deg)
      box-shadow: -10px -72px 0 -4px #333
              
            
!

JS

              
                
              
            
!
999px

Console