cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <div class="background">

  <div class="ears">
    <div class="ears__ear ears__ear--left"></div>
    <div class="ears__ear ears__ear--right"></div>
  </div>
  
  <div class="head">

    <div class="eye-brows">
      <div class="eye-brows__eye-brow eye-brows__eye-brow--left"></div>
      <div class="eye-brows__eye-brow eye-brows__eye-brow--right"></div>
    </div>

    <div class="eyes">
      <div class="eyes__eye eyes__eye--left"></div>
      <div class="eyes__eye eyes__eye--right"></div>
    </div>

    <div class="head-bottom">

      <div class="mouth">

        <div class="mouth__jowl"></div>
        <div class="mouth__mouth"></div>
      </div>

      <div class="snout">

        <div class="snout__nose"></div>

        <div class="snout__teeth">
          <div class="snout__tooth snout__tooth--left"></div>
          <div class="snout__tooth snout__tooth--right"></div>
        </div>

      </div>

    </div>

  </div>

</div>
            
          
!
            
              @import "compass/css3";

$bg-clr: #999;
$skin-clr: #eee;
$stk-clr: #444;

.background {
  align-items: center;
  background-color: $bg-clr;
  display: flex;
  flex-flow: column;
  height: 100%;
  justify-content: center;
  position: absolute;
  width: 100%;
}

.ears {
  height: 60px;
  margin-bottom: -32px;
  width: 92px;
}
.ears__ear {
  background-color: $stk-clr;
  border-top-left-radius: 8px;
  float: left;
  height: 60px;
  margin-right: 20px;
  position: relative;
  width: 12px;
  &::before {
    background-color: $stk-clr;
    border-bottom: 2px solid $bg-clr;
    border-left: 1px solid $stk-clr;
    border-radius: 8px;
    content: '';
    display: block;
    height: 18px;
    position: absolute;
    top: 0; left: 6px;
    width: 26px;
  }
}

.ears__ear--left {
  transform: rotate(-9deg) translateY(8px);
  &::before {
    left: 2px;
    width: 22px;
  }
}
.ears__ear--right {
  transform: rotate(9deg) translate(24px, 2px);
}

.head {
  background-color: $skin-clr;
  border: 2px solid $stk-clr;
  border-top: 16px solid $stk-clr;
  border-bottom: 1px solid $stk-clr;
  border-left: 6px solid $stk-clr;
  border-radius: 46px;
  display: flex;
  flex-flow: column;
  height: 192px;
  position: relative;
  width: 92px;
}

.eye-brows {
  display: flex;
  flex-flow: row;
  justify-content: space-around;
  margin-top: 54px;
  width: 100%;
}
.eye-brows__eye-brow {
  background-color: $stk-clr;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border-radius: 5px;
  height: 12px;
  position: relative;
  width: 30px;
  &::after {
    border-top: 3px solid $skin-clr;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    // border-bottom-left-radius: 0;
    // border-bottom-right-radius: 0;
    content: '';
    display: block;
    position: absolute;
    bottom: -2px;
    width: 30px;
  }
}
.eye-brows__eye-brow--left {
  transform: rotate(180deg) translateY(1px);
}
.eye-brows__eye-brow--right {
  transform: rotate(-180deg) translateY(1px);
}

.eyes {
  display: flex;
  flex-flow: row;
  justify-content: center;
  margin-bottom: 4px;
  width: 100%;
}
.eyes__eye {
  background-color: $stk-clr;
  border-radius: 5px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  height: 26px;
  position: relative;
  width: 10px;
  &::before {
    background-color: $skin-clr;
    border-top: 0;
    border-right: 0;
    // border-top: 3px solid $stk-clr;
    border-bottom: 8px solid $stk-clr;
    border-left: 4px solid $skin-clr;
    content: '';
    display: block;
    position: absolute;
    top: 0; right: 1px;
  }
  &::after {
    background-color: $stk-clr;
    border-radius: 1px;
    content: '';
    display: block;
    height: 2px;
    position: absolute;
    bottom: 0; left: -3px;
    width: 16px;
  }
}
.eyes__eye--left {
  margin-right: 32px;
}
.eyes__eye--right {
  &::after {
    left: -2px;
    width: 14px;
  }
}

.head-bottom {
  height: 88px;
  margin-left: -10px;
  position: relative;
  width: 120px;
}

.mouth {
  height: 60px;
  position: absolute;
  bottom: 0;
  width: 100%;
}
.mouth__jowl {
  background-color: $skin-clr;
  border: 3px solid $stk-clr;
  border-top: 0;
  border-left: 3px solid $stk-clr;
  border-radius: 30px;
  height: 50px;
  position: absolute;
  bottom: 0px; left: 0;
  width: 90%;
}
.mouth__mouth {
  background-color: $stk-clr;
  border-radius: 1px;
  height: 2px;
  position: absolute;
  bottom: 18px; left: 20%;
  width: 40px;
  &::before {
    border-top: 1px solid $skin-clr;
    border-bottom: 1px solid $skin-clr;
    border-left: 2px solid $stk-clr;
    border-radius: 50%;
    content: '';
    display: block;
    height: 12px;
    position: absolute;
    top: -5px; left: -4px;
    width: 6px;
  }
  &::after {
    background-color: $skin-clr;
    border-right: 0;
    border-bottom: 3px solid $stk-clr;
    border-left: 0;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
    content: '';
    display: block;
    height: 16px;
    position: absolute;
    bottom: -22px; right: -6px;
    width: 32px;
  }
}

.snout {
  background-color: $skin-clr;
  border: 2px solid $stk-clr;
  border-left: 1px solid $skin-clr;
  border-radius: 26px;
  height: 72px;
  position: absolute;
  top: 0; right: 0;
  width: 80px;
}

.snout__nose {
  background-color: $stk-clr;
  border: 1px solid $skin-clr;
  border-bottom: 0;
  border-radius: 50%;
  border-bottom-left-radius: 12px;
  height: 30px;
  position: absolute;
  top: -16px; right: 0;
  width: 30px;
  &::before {
    border-top: 4px solid $skin-clr;
    border-right: 6px solid $skin-clr;
    border-bottom: 4px solid $stk-clr;
    border-left: 6px solid $stk-clr;
    border-radius: 50%;
    content: '';
    display: block;
    position: absolute;
    top: 3px; right: 6px;
  }
}

.snout__teeth {
  height: 20px;
  width: 36px;
  position: absolute;
  bottom: -22px; right: 20px;
}

.snout__tooth {
  background-color: $skin-clr;
  border: 2px solid $stk-clr;
  border-top: 0;
  border-right: 1px solid $stk-clr;
  float: left;
  height: 20px;
}
.snout__tooth--left {
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 6px;
  margin-right: 1px;
  width: 18px;
}
.snout__tooth--right {
  border-bottom-right-radius: 50%;
  border-bottom-left-radius: 4px;
  width: 17px;
}



            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console