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

              
                <div class="outside">
  <div class="head">
    <div class="ears left"></div>
    <div class="ears right"></div>
    <div class="eyes left"></div>
    <div class="eyes right"></div>
    <div class="nose"></div>
  </div>
  
  <div class="body">
    <div class="w"></div>
    <div class="hand left">
      <div class="finger f1"></div>
      <div class="finger f2"></div>
      <div class="finger f3"></div>
    </div>
    <div class="hand right">
      <div class="finger f1"></div>
      <div class="finger f2"></div>
      <div class="finger f3"></div>
    </div>
    <div class="tail">
      <div class="bowTie"></div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                * {
  padding: 0;
  margin: 0;
}

body {
  background-color: #FB9966;
}

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

.head {
  width: 200px;
  height: 150px;
  background-color: #000;
  border-radius: 50% 50% 40% 40%;
  position: absolute;
  top: 30px;
  z-index: 2;
}

.ears {
  width: 0;
  height: 0;
  border-bottom: 60px solid #000;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  position: absolute;
  top: -25px;
}

.ears.left {
  transform: rotate(-15deg);
}

.ears.right {
  transform: rotate(15deg);
  right: 0;
}

.eyes {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  position: absolute;
  top: 50px;
}

.eyes::before {
  content: '';
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #A5A051;
  position: absolute;
  top: 5px;
  left: 5px;
}

.eyes::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  background-color: #fff;
  top: 10px;
  left: 10px;
}

.eyes.left {
  left: 30px;
}

.eyes.right {
  right: 30px;
}

.nose {
  width: 20px;
  height: 15px;
  background-color: #91989F;
  border-radius: 50%;
  position: absolute;
  top: 90px;
  left: 0;
  right: 0;
  margin: auto;
}

.nose::before,
.nose::after {
  content: '';
  width: 20px;
  height: 40px;
  position: absolute;
  border-bottom: 3px solid #91989F;
  border-radius: 50%;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  top: -22px;
}

.nose::before {
  left: -10px;
}

.nose::after {
  left: 5px;
}

.body {
  width: 200px;
  height: 250px;
  position: absolute;
  top: 100px;
  background-color: #000;
  border-radius: 50% 50% 40% 40%;
  z-index: 1;
}

.w {
  width: 0;
  height: 0;
  position: absolute;
  border-top: 50px solid #fff;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  top: 60px;
  left: 0;
  right: 0;
  margin: auto;
}

.hand {
  width: 30px;
  height: 20px;
  position: absolute;
  background-color: #fff;
  bottom: -3px;
  border-radius: 50%;
}

.finger {
  width: 15px;
  height: 15px;
  position: absolute;
  background-color: #fff;
  border-bottom: 3px solid #91989f;
  border-radius: 50%;
  top: 5px;
}

.hand.left {
  left: 50px;
}

.hand.right {
  right: 60px;
}

.f1 {
  left: -3px;
}

.f2 {
  left: 6px;
}

.f3 {
  left: 15px;
}

.tail {
  width: 120px;
  height: 200px;
  position: absolute;
  border-right: 45px solid #000;
  border-top: 45px solid transparent;
  border-bottom: 45px solid transparent;
  right: -45px;
  bottom: 23px;
  border-radius: 45%;
  transform: rotate(15deg);
}

.tail::before {
  content: '';
  width: 42px;
  height: 42px;
  background-color: #000;
  position: absolute;
  left: 102px;
  top: -21px;
  border-radius: 50%;
}

.bowTie {
  width: 0;
  height: 0;
  position: absolute;
  right: -40px;
  top: 0;
  border-left: 30px solid #e83015;
  border-right: 30px solid #e83015;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  transform: rotate(-20deg);
}

.bowTie::before {
  content:'';
  width: 20px;
  height: 24px;
  background-color: #e83015;
  position: absolute;
  border-radius: 50%;
  top: -12px;
  left: -10px;
}
              
            
!

JS

              
                
              
            
!
999px

Console