cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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.

Quick-add: + add another resource

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.

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="container">
    
    <div class="headOutline">
    </div>
    <div class="head">
      <div class="eye">
        <div class="leftEye"></div>
        <div class="rightEye"></div>
      </div>
      <div class="mouth"></div>
    </div>
    <div class="body">
      <div class="belly"></div>
      <div class="foot leftFoot"></div>
      <div class="foot rightFoot"></div>
    </div>
    <div class="hand leftHand"></div>
    <div class="hand rightHand"></div>
    
</div>
            
          
!
            
              html { height: 100%; }
body {
    position: relative;
    margin: 0;
    height: 350px;
    background: linear-gradient(0deg, #FEBB56 0, #F4F60C 100%);
    background-repeat: none;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
  position: relative;
  margin: 0 auto;
  height: 300px;
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.headOutline {
  width: 200px;
  height: 150px;
  background-color: #2e524e;
  border-radius: 50%;
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 1;
}

.headOutline::before, .headOutline::after{
    content: '';
    width: 0;
    height: 0;
    border-left: 55px solid transparent;
    border-right: 55px solid transparent;
    border-bottom: 50px solid #2e524e;
    top: -13px;
    position: absolute;
}

.headOutline::before{    
  left: 5px;    
  transform: rotate(-20deg);
}

.headOutline::after{    
  right: 5px;    
  transform: rotate(20deg);
}

.head {
  width: 150px;
  height: 90px;
  background: -webkit-radial-gradient(50% 50%, circle cover, #FFEFBF 19%, #C2B691 97%);
  border-radius: 50%;
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 1;
}

.head::before, .head::after{
  content: '';
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 20px solid #E2D4A9;
  top: -10px;
  position: absolute;
}

.head::before{    
  left: 12px;    
  transform: rotate(-18deg);
}

.head::after{    
  right: 12px;    
  transform: rotate(18deg);
}

.body {
    width: 90%;
    height: 150px;
    margin: 0 auto;
    box-shadow: 0 2px 2px 2px #000000;
    border: solid 50px #2e524e;
    border-top: solid 10px #2e524e;
    border-right: solid 35px #2e524e;
    border-left: solid 35px #2e524e;
    background: -webkit-radial-gradient(50% 50%, circle cover, #FFEFBF 19%, #C2B691 97%);
    border-radius: 50%;
    position: absolute;
    bottom: -10px;
    left: -25px;
    right: 0;
    margin: auto;
    z-index: 1;
}

.belly {
  width: 90px;
  height: 1px;
  margin: 0 auto;
  border: solid 25px #2e524e;
  background: #2e524e;
  border-radius: 50%;
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 1;
}

.eye .leftEye {
  right: 30px;
  transform: rotate(5deg);
}

.eye .rightEye {
  left: 30px;
  transform: rotate(-5deg);
}

.eye .leftEye, .eye .rightEye{
  width: 30px;
  height: 20px;
  border-top: 3px solid #2e524e;
  position: absolute;
  top: 35px;
  border-radius: 50;
}

.mouth {
  width: 90px;
  height: 20px;
  border-bottom: 3px solid #2e524e;
  position: absolute;
  top: 45px;
  left: 0;
  right: 0;
  margin: auto;
  border-radius: 20%;
}

.leftHand {
  transform: rotate(-30deg);
  left: -70px;
}

.rightHand {
  transform: rotate(30deg);
  right: -70px;
}

.hand {
  content: '';
  width: 150px;
  height: 60px;
  background-color: #2e524e;
  border-radius: 50px;
  position: absolute;
  bottom: 99px;
}

.foot {
  width: 100px;
  height: 90px;
  margin: 0 auto;
  box-shadow: 0 2px 2px 2px #000000;
  background: -webkit-radial-gradient(50% 50%, circle cover, #FFEFBF 19%, #C2B691 97%);
  border-radius: 50%;
  position: absolute;
  margin: auto;
  bottom: -80px;
  z-index: 1;
}

.leftFoot {
  transform: rotate(35deg);
  left: -30px;
}

.leftFoot::before {
  content: '';
  width: 50px;
  height: 40px;
  position: absolute;
  border-radius: 50%;
  background: -webkit-radial-gradient(80% 50%, circle cover, #B05F2A 0, #733E1C 100%);
  bottom: 15px;
  right: 10px;
}

.rightFoot {
  transform: rotate(-35deg);
  right: -30px;
}

.rightFoot::before {
  content: '';
  width: 50px;
  height: 40px;
  position: absolute;
  border-radius: 50%;
  background: -webkit-radial-gradient(80% 50%, circle cover, #B05F2A 0, #733E1C 100%);
  bottom: 15px;
  left: 10px;
}
            
          
!
999px
Loading ..................

Console