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 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

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

              
                .conatiner
  span.numer 4
  .circle
    .drops
    .drops
    .hand
    .hand.rgt
    .holder
      .bob
        .nose
        .face
          .mouth
            .tongue
        .ear
        .ear.rgt
        .neck
      
  span.numer 4
      
    
    
    
              
            
!

CSS

              
                @import "compass";

$skin : #fdd5b6;
$strk : #602f2d;
$bw   : 3px;
*, *:after, *:before{
 box-sizing: border-box; 
}
body{
  text-align: center;
  background: #03a9f4;
}


.conatiner{
  position: absolute;
  left: 50%;
  top: 50%;
  @include translate(-50% , -50%);
  width: 900px;
}


.circle{
  border-radius:50%;
  padding: 0;
  display: inline-block;
  position: relative;
  height: 375px;
    &:after{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: 40px solid #fffbdf;
    z-index: 50;
    border-radius:50%;
  }
}
.holder{
  overflow: hidden;
    width: 366px;
    height: 345px;
  border-radius:50%;
  position: relative;
}

.bob{
  position: absolute;
  display: inline-block;
   left: 50%;
  z-index: 10;
   @include translateX(-50%);
   @include animation(2s updown ease-in infinite);
  top:100%;
    .nose{
      position: relative;
      background: $skin;
      border:$bw solid $strk;
      margin: 0 auto;
      height: 35px;
      width: 35px;
      z-index: 15;
      border-radius: 50% 50% 0 0;
      top: 8px;
      
      &:after{
        content: '';
        position: absolute;
        left: 5px;
        top: 12px;
        height: 7px;
        width: 7px;
         border-radius: 50%;
        background: $strk;
        box-shadow:13px 0 $strk;
      }
    }
  
  .face{
    width: 200px;
    height: 200px;
    background: $skin;
    border:$bw solid $strk ;
    border-radius: 50%;
    position: relative;
    z-index: 50;
    box-shadow: 15px 0 #f7c6a4 inset;
  }
  
  .ear{
    position: absolute;
    background: $skin;
     border:$bw solid $strk;
    width: 40px;
    height: 40px;
    border-radius:50%;
    z-index: 15;
    top: 115px;
    left: -5px;
    &:after, &:before{
      content: '';
      position: absolute;
      background: $strk;
       border-radius: 15px;
      height: 3px;
      width: 20px;
      top: 12px;
      left: 5px;
      
    }
    &:after{
        @include rotate(127deg);
        width: 7px;
        top: 15px;
        left: 7px;
      }
    
    &.rgt{
      left: auto;
      right: -5px;
          &:after{
            @include rotate(47deg);
            top: 15px;
            left: 18px;
      }
    }
  }
  
  .neck{
      position: relative;
      background: $skin;
      border:$bw solid $strk;
      margin: 0 auto 0;
      height: 50px;
      width: 70px;
      z-index: 15;
      border-radius: 0 0 50% 50% ;
      top: -8px;
      box-shadow: 10px 0 #f7c6a4 inset;
  }
  
  .mouth{
    position: absolute;
    border:$bw solid $strk;
    background: #ec7374;
    width: 80%;
    height: 80%;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    border-radius: 50%;
    overflow: hidden;
    @include animation(1s openclose ease-in infinite);
    
    &:after, &:before{
      content: '';
      position: absolute;
      background:#cc5e64;
      border: 5px solid #df6062;
      border-radius:50%;
      bottom: 0;
      left: 0;
      right: 0;
      margin: auto;
      width: 120px;
      height: 120px;
      z-index: 2;
    }
    &:after{
      z-index: 10;
      bottom: auto;
      top: 25px;
      background: #ec7374;
      height: 40px;
      width: 40px;
      border-top-color: transparent;
    }
  }
  
  .tongue{
    position: absolute;
    background: $strk;
    width: 40px;
    height: 40px;
    left: 0;
    bottom: 5px;
    right: 0;
    margin: auto;
    border-radius: 50%;
    z-index: 5;
        &:after, &:before{
          content: '';
          position: absolute;
          background: #f9adba;
          border: $bw solid $strk;
          border-radius:50px;
          top: 22px;
          left: -4px;
          width: 30px;
          height: 40px;
          z-index: 2;
    }
    &:before{
      left: 16px;
    }
    
  }
}



.drops{
  background: #8ecbf9;
  border: 2px solid $strk;
  width: 20px;
  height: 20px;
  border-radius: 50px 50px 0 50px;
  position: absolute;
  @include rotate(-15deg);
  top: 150px;
  left: 70px;
  z-index: 100;
  @include animation(2s drop-l ease-in infinite);

  &:nth-child(2){
    left: auto;
    right: 70px;
      @include rotate(145deg);
    @include animation(2s drop-r ease-in infinite);
  }
    
  &:after, &:before{
    content: '';
      background: #8ecbf9;
      border: 2px solid $strk;
      width: 20px;
      height: 20px;
      border-radius: 50px 50px 0 50px;
      position: absolute;
      @include rotate(-15deg);
      top: 20px;
      left: -25px;
  }
  &:before{
    top: -30px;
    left: 0px;
  }
}
.hand{
  border:$bw solid $strk;  
  position: absolute;
    z-index: 50;
    background: #fdd5b6;
    width: 25px;
    height: 15px;
    border-radius: 20px;
    bottom: 86px;
    z-index: 200;
    left: 64px;
    @include rotate(-36deg);
  
  &:after, &:before{
    content: '';
    border:$bw solid $strk;  
    position: absolute;
    z-index: 50;
    background: #fdd5b6;
    width: 25px;
    height: 15px;
    border-radius: 20px;
    z-index: 200;
    top: 100%;
    left: 0;
  }
  &:before{
    top: 200%;
  }
}
.rgt{
    left: auto;
    right: 60px;
    bottom: 96px;
    @include rotate(50deg);
  }

.numer{
  font-size: 500px;
  display: inline-block;
  color: #fffbdf;
}

@include keyframes(updown){
   50% , 70% {top:25%}
}
@include keyframes(openclose){
   0% , 100%{@include scale(0.95)}
   50%{@include scale(1.1)}
}

@include keyframes(drop-l){
   0% , 50% {opacity: 0;  @include transform( translate(50px, 0) rotate(-15deg) )}
  55%{opacity: 1; @include transform( translate(0, 0) rotate(-15deg) )}
  70%{opacity: 1; @include transform( translate(-30px, 0) rotate(-25deg) )}
  85%{opacity: 1; @include transform( translate(-50px, 100px) rotate(-90deg)); opacity: .5;}
  86% , 100%{opacity: 0;} 

}
@include keyframes(drop-r){
   0% , 50% {opacity: 0; @include transform( translate(-50px, 0) rotate(145deg))}
  55%{opacity: 1; @include transform( translate(0, 0) rotate(145deg) )}
  70%{opacity: 1; @include transform( translate(30px, 0) rotate(160deg) )}
  85%{opacity: 1; @include transform( translate(50px, 100px) rotate(180deg)); opacity: .5;}
   86% , 100%{opacity: 0;} 

}
              
            
!

JS

              
                
              
            
!
999px

Console