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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <div class="container">
  <div class="bulbasaur">
    <div class="leftEar">
      <!-- Generator: Sketch 48.2 (47327) - http://www.bohemiancoding.com/sketch -->
      <svg width="60px" height="70px" viewBox="0 0 67 72" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
        <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
          <g transform="translate(-87.000000, -97.000000)" fill="#8ED1B2">
            <path d="M113.028715,101.091966 L139.943669,155.164558 L68.2091746,155.164558 L95.1241283,101.091966 C97.5851408,96.1477512 103.588264,94.1347177 108.532479,96.5957301 C110.480496,97.5653675 112.059077,99.1439486 113.028715,101.091966 Z" transform="translate(104.076422, 119.135609) rotate(-30.000000) translate(-104.076422, -119.135609) "></path>
          </g>
        </g>
      </svg>
    </div>
    <div class="rightEar">
      <!-- Generator: Sketch 48.2 (47327) - http://www.bohemiancoding.com/sketch -->
      <svg width="60px" height="70px" viewBox="0 0 66 72" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
        <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
          <g transform="translate(-170.000000, -97.000000)" fill="#8ED1B2">
            <path d="M228.028715,101.091966 L254.943669,155.164558 L183.209175,155.164558 L210.124128,101.091966 C212.585141,96.1477512 218.588264,94.1347177 223.532479,96.5957301 C225.480496,97.5653675 227.059077,99.1439486 228.028715,101.091966 Z" id="ear" transform="translate(219.076422, 119.135609) scale(-1, 1) rotate(-30.000000) translate(-219.076422, -119.135609) "></path>
          </g>
        </g>
      </svg>
    </div>
    <div class="head">
      <div class="face">
        <div class="eye"></div>
        <div class="eye"></div>
        <div class="markings">
          <div></div>
          <div></div>
          <div></div>
        </div>
        <div class="mouth">
          <div class="fang"></div>
          <div class="fang"></div>
        </div>
      </div>
    </div>
    <div class="belly">
    </div>
    <div class="leftLeg">
    </div>

    <div class="rightLeg">
    </div>

    <div class="bulb">
      <div class="tip">
      </div>
      <div class="base">
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                body {
  background-color: #1b2432;
}

.container {
    height: 325px;
    margin-left: auto;
    margin-right: auto;
    width: 325px;
    margin-top: 50vh;
}

.leftEar {
  height: 100px;
  margin-left: 57px;
  margin-top: -10px;
  position: absolute;
  width: 150px;
}

.rightEar {
  height: 100px;
  margin-left: 208px;
  margin-top: -10px;
  position: absolute;
  width: 150px;
}

.head {
  background-color: #8ed1b2;
  border-radius: 100%;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.16);
  height: 138px;
  margin: auto;
  width: 210px;
}

.eye {
  background-color: #333;
  border-radius: 100%;
  height: 20px;
  overflow: hidden;
  position: absolute;
  width: 20px;
}

.eye:before {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 100%;
  content: "";
  display: block;
  height: 11px;
  width: 11px;

  animation: eyeMovement ease-in-out 6s infinite;
}

.eye:first-child {
  margin-left: 27px;
  margin-top: 60px;
}

.eye:nth-child(2) {
  margin-left: 160px;
  margin-top: 60px;
}

.markings {
  display: block;
  position: relative;
  z-index: 10;
}

.markings > div:first-child {
  background-color: #2f7357;
  border-radius: 75%;
  height: 20px;
  left: 65px;
  position: relative;
  top: 35px;
  transform: rotate(60deg);
  width: 15px;
}

.markings > div:nth-child(2) {
  background-color: #2f7357;
  border-radius: 100% 50% 100% 50%;
  height: 35px;
  left: 90px;
  position: relative;
  top: 0;
  transform: rotate(-60deg);
  width: 25px;
}

.markings > div:nth-child(3) {
  background-color: #2f7357;
  border-radius: 100%;
  height: 10px;
  left: 135px;
  position: relative;
  top: -15px;
  transform: rotate(60deg);
  width: 10px;
}

.mouth:before {
  background-color: #8ed1b2;
  content: "";
  display: block;
  height: 15px;
  width: 90px;
}

.mouth {
  background-color: #e07f7e;
  border-radius: 100%;
  height: 30px;
  width: 90px;
  position: relative;
  top: 0;
  margin-left: auto;
  margin-right: auto;
}

.mouth:after {
  background-color: #8ed1b2;
  content: "";
  display: block;
  height: 20px;
  margin-top: 3px;
  width: 90px;

  animation: smile ease-in-out 6s infinite;
}

.fang {
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 8px solid white;
  height: 0;
  position: absolute;
  width: 0;
  z-index: 10;
}

.fang:first-child {
  margin-left: 10px;
}

.fang:last-child {
  margin-left: 70px;
}

.belly {
  background-color: #8ed1b2;
  border-radius: 100%;
  height: 125px;
  margin-left: auto;
  margin-right: auto;
  margin-top: -100px;
  position: relative;
  width: 200px;
  z-index: -1;
}

.leftLeg {
  background-color: #8ed1b2;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  display: block;
  height: 120px;
  margin-left: 55px;
  margin-top: -100px;
  position: relative;
  width: 50px;
  z-index: -1;
}

.rightLeg {
  background-color: #8ed1b2;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  display: block;
  height: 120px;
  margin-left: 220px;
  margin-top: -120px;
  position: relative;
  width: 50px;
  z-index: -1;
}

.bulb {
  height: 180px;
  margin-left: auto;
  margin-right: auto;
  margin-top: -275px;
  position: relative;
  width: 250px;
  z-index: -5;
}

.tip {
  border-left: 110px solid transparent;
  border-right: 110px solid transparent;
  border-bottom: 75px solid #82c490;
  height: 0;
  left: 15px;
  position: absolute;
  top: 5px;
  width: 0;
  z-index: 1;
}

.tip:before {
  border-left: 35px solid transparent;
  border-right: 75px solid transparent;
  border-bottom: 75px solid #82c490;
  content: "";
  height: 0;
  left: -15px;
  position: absolute;
  top: 5px;
  width: 0;
}

.tip:after {
  border-left: 75px solid transparent;
  border-right: 35px solid transparent;
  border-bottom: 75px solid #82c490;
  content: "";
  height: 0;
  left: -95px;
  position: absolute;
  top: 5px;
  width: 0;
}

.base {
  background-color: #82c490;
  border-radius: 75%;
  height: 125px;
  position: relative;
  top: 45px;
  width: 250px;
}
/* Animation */

@keyframes eyeMovement {
  0% {
    transform: translate(0, 0%);
    opacity: 1;
  }
  50% {
    transform: translate(10px, 0%);
  }
  100% {
    transform: translate(0, 0%);
  }
}

@keyframes smile {
  0% {
    transform: translate(0, 0%);
  }
  50% {
    transform: translate(0, 20px);
  }
  100% {
    transform: translate(0, 0%);
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console