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="head"> 
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
 width="400.000000pt" height="400.000000pt" viewBox="0 0 507.000000 585.000000"
 preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,585.000000) scale(0.100000,-0.100000)"
fill="#6eb63f" stroke="none">
<path d="M2270 5844 c-134 -16 -322 -49 -423 -75 -531 -134 -1000 -447 -1322
-884 -221 -300 -377 -655 -459 -1043 -42 -198 -57 -335 -63 -587 -4 -195 -2
-261 11 -355 55 -377 183 -752 359 -1055 110 -189 349 -532 476 -685 320 -383
623 -662 929 -854 252 -158 532 -278 694 -296 150 -17 272 10 475 105 351 166
621 362 938 679 318 319 598 683 815 1059 185 322 317 724 361 1100 15 127 6
476 -16 637 -88 655 -340 1180 -762 1591 -323 314 -632 482 -1098 594 -235 57
-322 67 -615 70 -146 2 -281 1 -300 -1z"/>
</g>
</svg>
    <div class= "left-eye">
      <div class= "left-sparkle"> </div> 
    </div> 
    <div class= "right-eye">
      <div class= "right-sparkle"> </div> 
    </div> 
    <div class= "left-nose"></div> 
    <div class= "right-nose"></div> 
</div>
</div> 
 
              
            
!

CSS

              
                body {
   height: 800px; 
   background: linear-gradient(to top right, #e9008d 25%, #f6841b 50%, #fcea08 75%, #05aded 100%); 
}

.head {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
} 
  
.left-eye { 
  background-color: black; 
  height: 230px; 
  width: 220px; 
  clip-path: ellipse(23% 37% at 51% 55%);
  position: absolute;
  top: 15%;
  left: 5%;
  transform: translate(-50%, -50%);
  transform: rotate(-30deg);
} 
.right-eye { 
  background-color: black; 
  height: 230px; 
  width: 220px; 
  clip-path: ellipse(23% 37% at 51% 55%);
  position: absolute;
  top: 15%;
  left: 53%;
  transform: translate(-50%, -50%);
  transform: rotate(30deg);
} 
  
.left-sparkle {
  background-color: white;
  height: 20px; 
  width: 10px; 
  border-radius: 50%; 
  position: absolute;
  top: 32%;
  left: 60%;
}
.right-sparkle {
  background-color: white;
  height: 20px; 
  width: 10px; 
  border-radius: 50%; 
  position: absolute;
  top: 30%;
  left: 39%;
}
.left-nose {
  background-color: #589132;
  height: 25px; 
  width: 8px; 
  border-radius: 50%; 
  position: absolute;
  top: 59%;
  left: 45%;
}
.right-nose {
  background-color: #589132;
  height: 25px; 
  width: 8px; 
  border-radius: 50%; 
  position: absolute;
  top: 59%;
  left: 50%;
}
              
            
!

JS

              
                
              
            
!
999px

Console