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

CSS

              
                body{
  min-height: 500px;
  height: 100vh;
  position: relative;
  background-color: #B0D0D3;
  margin: 0;
  
  display: flex;
  justify-content:center;
  align-items:center;
}

#snowman {
  background-repeat: no-repeat;
  width: 30em;
  height: 30em;
  background-image:
    //hat
    radial-gradient(ellipse, black 46%, transparent 50%),
    radial-gradient(ellipse, silver 20%, slategray 35%, DarkSlateGray 45%, black 50%, transparent 50%),
    linear-gradient(black, black),
    radial-gradient(ellipse, silver 20%, slategray 35%, DarkSlateGray 45%, black 50%, transparent 50%),
    radial-gradient(ellipse, black 47%, transparent 50%),
    //scarf
    linear-gradient(RebeccaPurple, RebeccaPurple),
    linear-gradient(40deg, transparent 49.5%, RebeccaPurple 50%, RebeccaPurple 53.5%, transparent 54%),
    radial-gradient(circle, RebeccaPurple 41%, transparent 50%),
    radial-gradient(circle, RebeccaPurple 41%, transparent 50%),
    //nose
    linear-gradient(-130deg, tomato 20%, transparent 21%),
    //eyes
    radial-gradient(circle, black 41%, transparent 50%),
    radial-gradient(circle, black 41%, transparent 50%),
    //buttons
    radial-gradient(circle, black 41%, transparent 50%),
    radial-gradient(circle, black 41%, transparent 50%),
    radial-gradient(circle, black 41%, transparent 50%),
    //body
    radial-gradient(circle, Snow 30%, #ededed 49%,  transparent 50%),
    radial-gradient(circle, Snow 30%, #ededed 49%, transparent 50%),
    radial-gradient(circle, Snow 30%, #ededed 49%, transparent 50%), 
    //arms
    linear-gradient(30deg, transparent 49%, black 50%, black 53%, transparent 54%),
    linear-gradient(-30deg, transparent 49%, black 50%, black 53%, transparent 54%),
    //fingers left
    linear-gradient(50deg, transparent 49%, black 50%, black 53%, transparent 54%),
    linear-gradient(10deg, transparent 49%, black 50%, black 53%, transparent 54%),
    //fingers right
    linear-gradient(120deg, transparent 49%, black 50%, black 53%, transparent 54%),
    linear-gradient(177deg, transparent 49%, black 50%, black 53%, transparent 54%),
    ;
    
  background-size: 
    //hat
    20% 5%, 20% 5%, 14% 12%, 20% 5%, 30% 5%,
    //scarf
    16% 3%, 6% 65%, 4.5% 4.5%, 4.5% 4.5%,
    //nose
    5% 10%,
    //eyes
    3% 3%, 3% 3%, 
    //buttons
    3% 3%, 3% 3%, 3% 3%,
    //body
    30% 30%, 40% 40%, 50% 50%,
    //arms
    15% 15%, 15% 15%,
    //fingers left
    16% 5%, 5% 15%,
    //fingers right
    14% 5%, 5% 15%;
  background-position: 
    //hat
    50% 12%, 50% 12.75%, 50% 16%, 50% 24%, 50% 26%,
    //scarf
    50% 44.5%, 55% 45.5%, 42% 44.5%, 57.75% 44.5%,
    //nose
    49% 40%, 
    //eyes
    53% 32%, 47% 32%,
    //buttons
    50%, 50% 55%, 50% 60%,
    //body
    50% 30%, 50% 60%, 50% 110%, 
    //arms
    25% 50%, 75% 50%,
    //fingers left
    20% 46%, 23% 48%,
    //fingers right
    80% 45%, 78% 47%;
}
              
            
!

JS

              
                
              
            
!
999px

Console