Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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="container__outer flex">
    <div class="container__art flex">
      <div class="container__popsicle flex">
        <div class="popsicle flex">
          <div class="glare"></div>
          <div class="face flex">
            <div class="eyes flex">
              <div class="eye"></div>
              <div class="eye"></div>
            </div>
            <div class="cheeks flex">
              <div class="cheek"></div>
              <div class="cheek"></div>
            </div>
            <div class="mouth"></div>
          </div>
        </div>
        <div class="stick"></div>
      </div>
      <div class="container__bubble flex">
        <div class="bubble">
          <div class="heart"></div>
        </div>
      </div>
    </div>
  </div>
              
            
!

CSS

              
                $color-popsicle-light: #ff98cc;
$color-popsicle: #f982bf;
$color-popsicle-dark: #ff2995;
$color-body-btm: #f0e576;
$color-body-top: #feb65e;
$color-white: #fff;
$color-stick: #ecaa7d;
$color-stick-dark: #db9e74;

body {
  background-color: $color-body-btm;
  overflow: hidden;
  margin: 0;
  height: 100%;
}

.flex {
  display: flex;
}

.container {
  &__outer {
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate( -50%, -50% );

    &::before{
      content: '';
      clip-path: polygon( 0 0, 100% 0, 100% 20%, 0 90% );
      background-color: $color-body-top;
      display: block;
      position: absolute;
      height: 100%;
      width: 100%;
      left: 0;
      top: 0;
      z-index: -10;
    }
  }

  &__art {
    justify-content: center;
    align-items: flex-start;
  }

  &__popsicle {
    flex-direction: column;
    align-items: center;

    .popsicle {
      width: 240px;
      height: 350px;
      background-color: $color-popsicle;
      flex-direction: column;
      justify-content: space-around;
      border-radius: 115px 115px 30px 30px;
      border-top: 8px solid $color-popsicle-light;
    }

    .glare {
      width: 35px;
      height: 70px;
      background-color: $color-popsicle-light;
      position: relative;
      left: 170px;
      bottom: 20px;
      transform: rotate( -38deg );
      border-radius: 50%;
    }

    .face {
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      height: 78px;
    }

    .eyes {
      justify-content: space-between;
      width: 160px;
    }

    .eye {
      width: 28px;
      height: 28px;
      background: $color-popsicle-dark;
      border-radius: 50%;
      position: relative;
      border-bottom: 2px solid $color-popsicle-light;

      &::before,
      &::after {
        content: '';
        display: block;
        position: absolute;
        background-color: $color-white;
        border-radius: 50%;
      }

      &:before {
        width: 9px;
        height: 9px;
        top: 6px;
        right: 6px;
      }

      &:after {
        width: 4px;
        height: 4px;
        bottom: 6px;
        left: 7px;
      }
    }

    .cheeks {
      justify-content: space-between;
      width: 210px;
    }

    .cheek {
      width: 32px;
      height: 16px;
      margin-top: 3px;
      background: $color-popsicle-light;
      border-radius: 14px;
      position: relative;
    }

    .mouth {
      width: 75px;
      height: 25px;
      background-color: $color-popsicle-dark;
      border-radius: 10px 10px 40px 40px;
      border-bottom: 2px solid $color-popsicle-light;
    }

    .stick {
      width: 60px;
      height: 72px;
      border-top: 12px solid $color-stick-dark;
      background-color: $color-stick;
      border-radius: 0 0 26px 26px;
    }
  }

  &__bubble {
    position: relative;
    background-color: $color-white;
    border-radius: 50%;
    margin-left: 40px;
    margin-top: 40px;
    width: 120px;
    height: 120px;
    justify-content: center;
    align-items: center;

    &:before {
      content: '';
      transform: skewX( -40deg );
      position: absolute;
      top: 70%;
      left: 0;
      border-width: 30px 60px 0 0;
      border-style: solid;
      border-color: $color-white transparent;
    }

    .heart {
      background-color: $color-popsicle-dark;
      height: 30px;
      width: 30px;
      transform: rotate( -45deg );
      position: relative;
      margin-top: 10px;

      &::before,
      &::after {
        content: '';
        background-color: $color-popsicle-dark;
        border-radius: 50%;
        position: absolute;
        height: 30px;
        width: 30px;
      }

      &::before {
        top: -16px;
        left: 0;
      }

      &::after {
        top: 0;
        right: -16px;
      }
    }
  }
}

              
            
!

JS

              
                // Twitter @anniebombanie_
              
            
!
999px

Console