Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

Save Automatically?

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

              
                .panda
  .body-shadow-1
  .body-shadow-2
  .body-spot-1
  .body-spot-2
 
  .panda__eye--left
  .panda__eye--right
  .panda__nose
  .center-circle
    .center-circle__shadow

.ears
  .panda__ear--left
    .panda__ear--left__shadow
  .panda__ear--right
    .panda__ear--right__shadow
  .bottom-shadow
              
            
!

CSS

              
                $yellow: #efdc7e
$white: #FFFFFF
$black: #000000
$body: #f3f3f3

html
  height: 100%
  width: 100%

body
  background-color: $yellow
  display: flex
  align-items: center
  justify-content: center
  height: 100%
  width: 100%
  
.panda
  width: 500px
  height: 500px
  background-color: $body
  border-radius: 50%
  position: absolute
  overflow: hidden
  
  .body-shadow-1
    width: 500px
    height: 500px
    border-radius: 50%
    position: absolute
    box-shadow: 10px 15px 20px 15px $white inset
  
  .body-shadow-2
    width: 500px
    height: 500px
    border-radius: 50%
    position: absolute
    box-shadow: -20px -15px 25px 5px rgba(0, 0, 0, 0.2) inset
    z-index: 2
    
  .body-spot-1
    width: 110px
    height: 100px
    background-color: $black
    border-radius: 50%
    position: absolute
    top: 350px
    box-shadow: 40px -50px 30px 5px rgba(255, 255, 255, .2) inset
  
  .body-spot-2
    width: 150px
    height: 150px
    background-color: $black
    border-radius: 50%
    position: absolute
    top: 365px
    left: 20px
    box-shadow: 50px -75px 35px -20px rgba(255, 255, 255, .2) inset

  
  &__ear
    &--left
      width: 90px
      height: 90px
      background-color: $black
      border-radius: 50%
      position: absolute
      left: 50px
      top: 20px
      z-index: -1
      
      &__shadow
        width: 90px
        height: 90px
        border-radius: 50%
        box-shadow: 8px 2px 10px 0px rgba(255, 255, 255, 0.5) inset
      
    &--right
      width: 90px
      height: 90px
      background-color: $black
      border-radius: 50%
      position: absolute
      left: 350px 
      top: 20px
      z-index: -1
      
      &__shadow
        width: 90px
        height: 90px
        border-radius: 50%
        box-shadow: -15px -5px 10px 0px rgba(255, 255, 255, 0.3) inset
  
  &__eye--left
    position: absolute
    width: 70px
    height: 80px
    top: 45px
    left: 125px
    background-color: $black
    border-radius: 90% 40% 80% / 100% 30% 80% 30%
    
  &__eye--right
    position: absolute
    width: 70px
    height: 80px
    top: 45px
    left: 300px
    background-color: $black
    border-radius: 90% 40% 80% / 100% 30% 80% 30%
    transform: scale(-1, 1)
  
  &__nose
    width: 15px
    height: 10px
    position: absolute
    top: 80px
    left: 225px
    border-radius: 15px
    border-top: solid 15px
    border-left: solid 15px transparent
    border-right: solid 15px transparent
  
.center-circle
  width: 250px
  height: 250px
  position: absolute
  margin: auto
  left: 0
  right: 0
  top: 0
  bottom: 0
  border-radius: 50%
  background-color: $yellow
  
  &__shadow
    box-shadow: 0px 3px 15px 6px rgba(0, 0, 0, 0.1)
    width: 250px
    height: 250px
    position: absolute
    margin: auto
    left: 0
    right: 0
    top: 0
    bottom: 0
    border-radius: 50%     
  
.ears
  width: 500px
  height: 500px
  border-radius: 50%
  position: absolute
  
  .bottom-shadow
    width: 500px
    height: 50px
    background-color: rgba(0, 0, 0, .1)
    position: absolute
    top: 450px
    border-radius: 50%
    box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, .1)
    z-index: -1
              
            
!

JS

              
                
              
            
!
999px

Console