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

              
                .snowman
  .snowman__leg O
  .snowman__stomach O
  .snowman__head O
  .snowman__button.snowman__button-1 G
  .snowman__button.snowman__button-2 @
  .snowman__button.snowman__button-3 6
  .snowman__button.snowman__button-4 D
  .snowman__nose V
  .snowman__left-eye *
  .snowman__right-eye #
  .snowman__left-arm Y
  .snowman__right-arm F
  .snowman__hat
    .snowman__hat--base M
    .snowman__hat--left L
    .snowman__hat--right J

              
            
!

CSS

              
                body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #ffcdb2 40%, #f08080 100%);
  min-height: 100vh;
  margin: 0;
}

.snowman {
  --snowman: #ffffff;
  --snowman-button: #03071e;
  --snowman-nose: #f72585;
  --snowman-arm: #6d597a;

  font-family: 'Verdana', sans-serif;
  width: 10rem;
  height: 21rem;
  position: relative;
}

.snowman .snowman__leg {
  color: var(--snowman);
  font-size: 12rem;
  position: absolute;
  bottom: -1rem;
  left: 0.8rem;
  line-height: 11rem;
  transform: rotate(75deg);
  text-shadow: 1px -1px 2px rgba(0, 0, 0, 0.2);
}

.snowman .snowman__stomach {
  color: var(--snowman);
  font-size: 8rem;
  position: absolute;
  bottom: 7.4rem;
  left: 1.5rem;
  line-height: 7rem;
  transform: rotate(-85deg);
  text-shadow: -1px -1px 2px rgba(0, 0, 0, 0.2);
}

.snowman .snowman__head {
  color: var(--snowman);
  font-size: 6rem;
  position: absolute;
  bottom: 11.7rem;
  left: 2.5rem;
  transform: rotate(-95deg);
  text-shadow: -1px 1px 2px rgba(0, 0, 0, 0.2);
}

.snowman .snowman__button {
  color: var(--snowman-button);
  font-weight: 900;
  position: absolute;
}

.snowman .snowman__button-1 {
  font-size: 1.2rem;
  bottom: 4.3rem;
  left: 4.5rem;
  transform: rotate(-60deg);
  text-shadow: -2px 1px 4px;
}

.snowman .snowman__button-2 {
  font-size: 1.2rem;
  bottom: 6.6rem;
  left: 4.6rem;
  transform: rotate(120deg);
  text-shadow: -2px -2px 4px;
}

.snowman .snowman__button-3 {
  font-size: 1.1rem;
  bottom: 9rem;
  left: 4.6rem;
  transform: rotate(120deg);
  text-shadow: 1px -2px 4px;
}

.snowman .snowman__button-4 {
  font-size: 1rem;
  bottom: 11rem;
  left: 4.5rem;
  transform: rotate(120deg);
  text-shadow: 1px -2px 4px;
}

.snowman .snowman__nose {
  position: absolute;
  color: var(--snowman-nose);
  left: 4rem;
  bottom: 13.3rem;
  font-size: 1.6rem;
  transform: rotate(20deg) scaleX(1) scaleY(2);
  text-shadow: 1px 1px 2px;
}
  
.snowman .snowman__left-eye {
  position: absolute;
  left: 3.6rem;
  bottom: 15.2rem;
  font-weight: 900;
  color: var(--snowman-button);
  font-size: 0.8rem;
  text-shadow: 1px 1px 2px;
}

.snowman .snowman__right-eye {
  position: absolute;
  left: 5.4rem;
  bottom: 15.3rem;
  font-weight: 900;
  color: var(--snowman-button);
  font-size: 0.8rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transform: rotate(20deg);
}

.snowman .snowman__left-arm {
  position: absolute;
  font-size: 3rem;
  bottom: 8.5rem;
  left: -0.7rem;
  color: var(--snowman-arm);
  transform: rotate(-120deg) scaleY(2);
}

.snowman .snowman__right-arm {
  position: absolute;
  font-size: 3rem;
  bottom: 8rem;
  left: 8.5rem;
  color: var(--snowman-arm);
  transform: rotate(120deg) scaleY(2);
}

.snowman .snowman__hat {
  position: absolute;
  font-weight: 900;
  color: var(--snowman-button);
  bottom: 16.6rem;
  left: 2.4rem;
  width: 5rem;
  height: 4rem;
  transform: rotate(10deg);
}

.snowman .snowman__hat--base {
  position: absolute;
  font-size: 3.5rem;
  left: 1.5rem;
}

.snowman .snowman__hat--left {
  position: absolute;
  font-size: 2.4rem;
  top: 1.5rem;
  transform: rotate(-90deg);
}

.snowman .snowman__hat--right {
  position: absolute;
  font-size: 2.4rem;
  left: 4.9rem;
  top: 1.5rem;
  transform: rotate(90deg);
}













footer {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  opacity: 0.5;
  transition: opacity 400ms ease-in-out;
}

footer:hover {
  opacity: 1;
}

footer div {
  display: flex;
  align-items: center;
  background-color: #161e2b;
  border-radius: 0.4rem;
  overflow: hidden;
}

footer .footer-info {
  width: 4rem;
  text-align: center;
  font-family: 'Times New Roman', serif;
  font-weight: bold;
  font-style: italic;
  font-size: 2.6rem;
  color: #ffffff;
}

footer div div {
  position: relative;
  margin-right: -15.3rem;
  display: inline-block;
  border-radius: 0.4rem;
  padding: 0.6rem 0.8rem 0.6rem 0.2rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  color: #80a7e7;
  line-height: 1.6rem;
  transition: all 500ms ease-in-out;
}

@media only screen and (min-width: 576px) {
  footer div div {
    font-size: 1rem;
    margin-right: -18.5rem;
  }
}

footer:hover div div {
  margin-right: 0px;
}

footer a {
  margin-left: 0.2rem;
  color: #ffffff;
}
              
            
!

JS

              
                
              
            
!
999px

Console