css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="container">
  <div class="head">
    <div class="stripe one"></div>
    <div class="stripe two"></div>
    <div class="stripe three"></div>
    <div class="stripe four"></div>
    <div class="stripe five"></div>
    <div class="stripe six"></div>
    <div class="stripe seven"></div>
    <div class="stripe eight"></div>
    <div class="stripe nine"></div>
    <div class="ear">
      <div class="inner"></div>
    </div>
    <div class="ear right">
      <div class="inner right"></div>
    </div>
    <div class="face">


      <div class="eye">
      </div>
      <div class="eye right"> </div>
      <div class="nose"> </div>
      <div class="mouth"> </div>
    </div>
  </div>
  <div class="hand"></div>
  <div class="hand right"></div>
  <div class="newspaper">
    <div class="headline"> </div>
    <div class="headline two"> </div>
    <div class="headline picture">
    </div>
  </div>
  <div class="newspaper two"></div>
</div>
</div>
            
          
!
            
              $orange: #DD6E42;
$beige: #E8DAB2;

body {
  background: #E8DAB2;
}

.container {
  position: absolute;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 300px;
}

.head {
  z-index: 1;
  position: absolute;
  width: 200px;
  height: 200px;
  background: #DD6E42;
  border-radius: 100px;
}

.ear {
  position: absolute;
  width: 50px;
  height: 50px;
  background: #DD6E42;
  border-radius: 70% 100% 100% 100%;
}

.ear.right {
  left: 150px;
  border-radius: 100% 70% 100% 100%;
}

.inner {
  position: absolute;
  top: 7px;
  left: 6px;
  width: 30px;
  height: 30px;
  background: #F7C4A5;
  border-radius: 70% 100% 100% 100%;
}

.inner.right {
  left: 10px;
  border-radius: 100% 70% 100% 100%;
}

.face {
  position: absolute;
  left: 10px;
}

.eye {
  position: absolute;
  top: 120px;
  left: 66px;
  width: 10px;
  height: 10px;
  background: #333;
  border-radius: 100%;
}

.eye.right {
  left: 110px;
}

.nose {
  position: absolute;
  top: 119px;
  left: 82px;
  width: 25px;
  height: 25px;
  background: #A15131;
  border-radius: 100%;
}

.mouth {
  position: absolute;
  top: 130px;
  left: 70px;
  width: 30px;
  height: 30px;
  background: #FFF;
  border-radius: 100%;
}

.mouth:before {
  content: '';
  position: absolute;
  left: 20px;
  width: 30px;
  height: 30px;
  background: #FFF;
  border-radius: 100%;
}

.stripe.one {
  position: absolute;
  top: 80px;
  left: 2px;
  width: 40px;
  height: 10px;
  background: #000;
  border-radius: 3px 100% 0 0;
}

.stripe.two {
  position: absolute;
  top: 100px;
  left: 2px;
  width: 37px;
  height: 10px;
  background: #000;
  border-radius: 3px 100% 0 0;
}

.stripe.three {
  position: absolute;
  top: 120px;
  left: 5px;
  width: 30px;
  height: 10px;
  background: #000;
  border-radius: 3px 100% 0 7px;
}

.stripe.four {
  position: absolute;
  top: 80px;
  left: 158px;
  width: 40px;
  height: 10px;
  background: #000;
  border-radius: 100% 3px 0 0;
}

.stripe.five {
  position: absolute;
  top: 100px;
  left: 162px;
  width: 37px;
  height: 10px;
  background: #000;
  border-radius: 100% 3px 0 0;
}

.stripe.six {
  position: absolute;
  top: 120px;
  left: 166px;
  width: 30px;
  height: 10px;
  background: #000;
  border-radius: 100% 3px 7px 0;
}

.stripe.seven {
  z-index: 1;
  position: absolute;
  top: 3px;
  left: 76px;
  width: 10px;
  height: 40px;
  background: #000;
  border-radius: 3px 10px 150% 0;
}

.stripe.eight {
  z-index: 1;
  position: absolute;
  top: 1px;
  left: 95px;
  width: 10px;
  height: 40px;
  background: #000;
  border-radius: 3px 10px 150% 0;
}

.stripe.nine {
  z-index: 1;
  position: absolute;
  top: 3px;
  left: 116px;
  width: 10px;
  height: 40px;
  background: #000;
  border-radius: 3px 10px 150% 0;
}

.hair {
  position: absolute;
  top: 1px;
  left: 70px;
  background: #DD6E42;
  width: 20px;
  height: 20px;
  border-radius: 100% 0 100% 100%;
  transform: rotate(-20deg);
}

.hair.two {
  left: 80px;
}

.hair.three {
  left: 90px;
}

.newspaper {
  z-index: 1;
  position: absolute;
  top: 180px; left: -40px;
  width: 150px; height: 200px;
  background: #CCC;
}

.newspaper.two {
  position: absolute;
  left: 110px;
  content: '';
  width: 150px; height: 200px;
  background: #BBB;
}

.headline {
  opacity: 0.6;
  position: absolute;
  top: 30px; left: 10px;
  background: #999;
  width: 120px; height: 10px;
}

.headline.two {
top: 50px;  left: 25px;
}


.headline.picture {
   width: 100px; height: 60px;
  top: 76px;  left: 25px;
}

.hand {
  z-index: 3;
  position: absolute;
  top: 270px; left: -55px;
  width: 30px; height: 30px;
  border-radius: 100%;
  background: $orange;
}

.headline.a {
  opacity: 0.6;
  position: absolute;
  top: 50px; left: 20px;
  background: #999;
  width: 120px; height: 10px;
}

.headline.b {
  top: 70px; left: 20px;
}

.hand.right {
  left: 240px;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console