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></div>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background-color: bisque;
  margin: 0px;
  padding: 0px;
}

div {
  position: absolute;
  height: 500px;
  width: 270px;
  border-radius: 50%/30%;

  background-repeat: no-repeat;
  position: relative;
  background-image: 
                      /*eye ball*/ radial-gradient(
      circle,
      rgb(255, 255, 255) 3px,
      transparent 3px
    ),
    radial-gradient(circle, rgb(39, 35, 35) 10px, transparent 10px),
    radial-gradient(circle, rgb(117, 91, 42) 15px, transparent 15px),
    radial-gradient(ellipse at bottom, yellow 45px, transparent 45px),
    radial-gradient(circle, white 50px, transparent 50px),
    radial-gradient(circle, grey 60px, transparent 60px),
    radial-gradient(circle, rgb(116, 102, 102) 63px, transparent 63px),
    radial-gradient(circle, grey 70px, transparent 70px),
    linear-gradient(grey 20px, transparent 20px),
    linear-gradient(grey 20px, transparent 20px),
    linear-gradient(black 50px, transparent 50px),
    linear-gradient(black 50px, transparent 50px),
    radial-gradient(brown 50px, transparent 50px),
    radial-gradient(brown 50px, transparent 50px),
    linear-gradient(blue 100px, transparent 100px),
    /*Shirt*/ linear-gradient(blue 100px, transparent 100px),
    radial-gradient(yellow 80px, transparent 80px),
    radial-gradient(blue 80px, transparent 80px),
    radial-gradient(yellow 80px, transparent 80px),
    radial-gradient(blue 80px, transparent 80px),
    radial-gradient(yellow 60px, transparent 60px),
    /*mouth*/ radial-gradient(white 40px, transparent 40px),
    radial-gradient(rgb(117, 91, 42) 15px 40px, transparent 40px),
    linear-gradient(black 10px, transparent 10px),
    /*hair*/ linear-gradient(black 10px, transparent 10px),
    linear-gradient(black 10px, transparent 10px),
    linear-gradient(black 10px, transparent 10px),
    linear-gradient(black 10px, transparent 10px),
    linear-gradient(black 10px, transparent 10px),
    linear-gradient(yellow 50px, yellow 50px);

  background-size: 6px 6px, 20px 20px, 30px 30px, 230px 95px, 100px 100px,
    120px 120px, 126px 126px, 140px 140px, 15px 20px, /*eyeband*/ 15px 20px,
    100px 15px, 100px 15px, 100px 100px, 100px 100px, 270px 200px, 150px 100px,
    150px 150px, 160px 160px, 150px 150px, 160px 160px, 120px 120px,
    /*mouth*/ 80px 80px, 80px 80px, 70px 5px, /*hair*/ 70px 5px, 50px 5px,
    50px 5px, 30px 5px, 30px 5px, 270px 500px;
  background-position: 130px 130px, 130px 130px, 125px 125px, 25px 32px,
    90px 90px, 80px 80px, 77px 77px, 70px 70px, 59px 130px, 205px 130px,
    0px 132px, 170px 132px, 0px 315px, 50px 300px, 0px 400px, 65px 300px,
    -80px 265px, -80px 240px, 215px 265px, 205px 240px, 80px 130px, 100px 180px,
    100px 200px, 50px 30px, 150px 30px, 70px 15px, 150px 15px, 90px 5px,
    150px 5px, 0px 0px;
  /* box-shadow: 1px 10px 15px 0px rgb(90, 94, 94);*/
}

div::before {
  content: "";
  width: 250px;
  height: 3px;
  position: absolute;
  top: 310px;
  left: 100px;
  transform: rotate(-18deg);
  background: rgb(77, 47, 8);

  box-shadow: -60px 0px 0px 0px rgb(77, 47, 8), 0px -2px 0px 0px brown,
    0px -5px 0px 0px rgb(77, 47, 8), -60px -5px 0px 0px rgb(77, 47, 8),
    0px -7px 0px 0px brown, 0px -10px 0px 0px rgb(77, 47, 8),
    -60px -10px 0px 0px rgb(77, 47, 8), 0px -5px 0px 15px brown;
}

div::after {
  content: "";
  width: 10px;
  height: 30px;
  position: absolute;
  top: 465px;
  left: 90px;
  background-color: blue;
  box-shadow: 150px -170px 0px 0px black, 160px -175px 0px 0px black,
    170px -170px 0px 0px black, -50px -150px 0px 0px black,
    -40px -153px 0px 0px black, -30px -150px 0px 0px black,
    75px 0px 0px 20px blue, 75px 20px 0px 20px blue, 0px 20px 0px 20px blue,
    0px 50px 0px 20px black, 75px 50px 0px 20px black;
}

              
            
!

JS

              
                
              
            
!
999px

Console