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="buttercup"></div>
              
            
!

CSS

              
                .buttercup {
  height: 400px;
  width: 200px;
  
  position: relative;
  top: 200px;
  left: 100px;
  
  color: #6FA748;
  
  background:
    /* correct fringe */
    radial-gradient(
     ellipse at bottom,
      transparent 46%,
      black 49.5%,
      white 50%
    ) 0 0 / 200px 75px,
    
    /* fringe */
    linear-gradient(
      45deg,
      transparent 30%,
      black 30%
    ) 93px 25px / 70px 35px,
    linear-gradient(
      -45deg,
      transparent 30%,
      black 30%
    ) 38px 25px / 70px 35px,
    
    /* right eye */
    radial-gradient(
      white 29%,
      transparent 30.5%
    ) 103px 47px / 50px 50px,
    radial-gradient(
      black 40%,
      transparent 40.5%
    ) 96px 37px / 70px 70px,
    radial-gradient(
      currentColor 46%,
      transparent 47%
    ) 97px 33px / 78px 78px,
    radial-gradient(
      white 48%,
      transparent 49%
    ) 96px 31px / 82px 82px,
    radial-gradient(
      black 49.5%,
      transparent 50%
    ) 95px 30px / 85px 85px,
    
    /* left eye */
    radial-gradient(
      white 29%,
      transparent 30.5%
    ) 47px 47px / 50px 50px,
    radial-gradient(
      black 40%,
      transparent 40.5%
    ) 36px 37px / 70px 70px,
    radial-gradient(
      currentColor 46%,
      transparent 47%
    ) 27px 33px / 78px 78px,
    radial-gradient(
      white 48%,
      transparent 49%
    ) 23px 31px / 82px 82px,
    radial-gradient(
      black 49.5%,
      transparent 50%
    ) 22px 30px / 85px 85px,
    
    /* mouth */
    radial-gradient(
      ellipse at top,
      #F8D4BB 45%,
      transparent 50%
    ) 87px 98px / 25px 20px,
    radial-gradient(
      ellipse at top,
      black 48%,
      transparent 50%
    ) 87px 98px / 25px 20px,
    
    /* head */
    radial-gradient(
      #F8D4BB 45.5%,
      black 46%,
      black 49.5%,
      transparent 50%
    ) 0 0 / 200px 150px,
    
    /* side hair */
    radial-gradient(
      ellipse at top,
      black 44.5%,
      transparent 45%
    ) -25px 75px / 250px 70px,
    
    /* dress */
    linear-gradient(
      to bottom,
      currentColor 0%,
      currentColor 25%,
      black 25%,
      black 60%,
      currentColor 60%,
      currentColor 100%
    ) 80px 120px / 40px 50px,
    linear-gradient(
      to bottom,
      black,
      black
    ) 75px 116px / 50px 60px,
    
    /* hands */
    radial-gradient(
      #F8D4BB 47.5%,
      transparent 48%
    ) 105px 105px / 30px 80px,
    radial-gradient(
      black 49.5%,
      transparent 50%
    ) 108px 105px / 30px 80px,
    radial-gradient(
      #F8D4BB 47.5%,
      transparent 48%
    ) 65px 105px / 30px 80px,
    radial-gradient(
      black 49.5%,
      transparent 50%
    ) 62px 105px / 30px 80px,
    
    /* legs */
    linear-gradient(
      to right,
      black 8%,
      white 8%,
      white 45%,
      black 45%,
      black 55%,
      white 55%,
      white 92%,
      black 92%
    ) 77.5px 150px / 45px 60px,
    
    /* feet */
    radial-gradient(
      ellipse at top,
      white 49.5%,
      transparent 50%
    ) 98px 212px / 24px 10px,
    radial-gradient(
      ellipse at top,
      black 49.5%,
      transparent 50%
    ) 92.5px 208px / 35px 30px,
    radial-gradient(
      ellipse at top,
      white 49.5%,
      transparent 50%
    ) 77px 212px / 24px 10px,
    radial-gradient(
      ellipse at top,
      black 49.5%,
      transparent 50%
    ) 72px 208px / 35px 30px;
  
  background-repeat: no-repeat;
  
  transform: scale(2);
}
              
            
!

JS

              
                
              
            
!
999px

Console