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

              
                .container
  .monster
    .ball
      .belly
    .left-arm
    .right-arm
    .left-foot
    .right-foot
    .middle-eye.eye
      .iris
    .left-eye.eye
      .iris.iris-small
    .right-eye.eye
      .iris.iris-small
    .mouth
      .teeth
      .tongue
    .left-ears
      .large
      .small
    .right-ears
      .large
      .small
  .shadow

              
            
!

CSS

              
                html {
  height: 100%;
  overflow: hidden;
  background-color: #fff3e0;
}
body {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff3e0;
}
.container {
  z-index: 10;
}
.monster{
  position: relative;
  margin: auto;
  width: 250px;
  animation: float 3s infinite;
}
.ball {
  position: relative;
  height: 250px;
  width: 250px;
  border-radius: 50%;
  background-color: #fe6546;
  overflow: hidden;
}
.ball:before {
  content: '';
  position: absolute;
  bottom: 60px;
  left: 5px;
  height: 30px;
  width: 30px;
  z-index: 3;
  background-color: rgba(255,255,255,.5);
  border-radius: 50%;
  box-shadow: 
    18px 22px 0px -10px rgba(255,255,255,.5), 
    26px -2px 0px -9px rgba(255,255,255,.5), 
    14px -26px 0px -8px rgba(255,255,255,.5), 
    -11px -28px 0px -6px rgba(255,255,255,.5),
    -5px -50px 0px -10px rgba(255,255,255,.5);
}
.ball:after {
  content: '';
  position: absolute;
  bottom: 60px;
  right: 5px;
  height: 30px;
  width: 30px;
  z-index: 3;
  background-color: rgba(255,255,255,.5);
  border-radius: 50%;
  box-shadow: 
    -18px 19px 0px -10px rgba(255,255,255,.5), 
    -26px -4px 0px -9px rgba(255,255,255,.5), 
    14px -26px 0px -6px rgba(255,255,255,.5), 
    -11px -25px 0px -8px rgba(255,255,255,.5),
    5px -48px 0px -10px rgba(255,255,255,.5);
}
.belly {
  content: '';
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 100px;
  width: 60%;
  border-radius: 50%;
  background-color: #f8d27f;
}
.left-arm {
  position: absolute;
  top: 60px;
  left: -10px;
  z-index: -1;
  transform: rotate(18deg);
  height: 150px;
  width: 50px;
  border-radius: 80% 100% 30px 100px;
  background-color: #e25335;
}
.right-arm {
  position: absolute;
  top: 60px;
  right: -10px;
  z-index: -1;
  transform: rotate(-18deg);
  height: 150px;
  width: 50px;
  border-radius: 80% 100% 100px 30px;
  background-color: #e25335;
}
.left-foot {
  position: absolute;
  bottom: -5px;
  left: 35px;
  z-index: -1;
  height: 50px;
  width: 50px;
  border-radius: 0 0 30px 30px;
  background-color: #e25335;
}
.right-foot {
  position: absolute;
  bottom: -5px;
  right: 35px;
  z-index: -1;
  height: 50px;
  width: 50px;
  border-radius: 0 0 30px 30px;
  background-color: #e25335;
}
.middle-eye {
  position: absolute;
  margin: auto;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 75px;
  width: 75px;
  border-radius: 50%;
  background-color: #fff4e2;
}
.eye:before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  width: 100%;
  height: 0;
  background-color: #fe6546;
  animation: blink 6s infinite;
}
.eye:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  width: 100%;
  height: 0;
  background-color: #fe6546;
  animation: blink 6s infinite;
}
.left-eye:before,
.left-eye:after,
.right-eye:before,
.right-eye:after {
  animation-delay: .05s ;   
}
.left-eye {
  position: absolute;
  top: 60px;
  left: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background-color: #fff4e2;
}
.right-eye {
  position: absolute;
  top: 60px;
  right: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background-color: #fff4e2;
}
.iris {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background-color: #3ebdac;
  animation: eyemove 6s infinite;
}
.iris-small{
  height: 20px;
  width: 20px;
}
.iris:after {
  content:'';
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: #000;
}
.iris-small:after {
  height: 10px;
  width: 10px;
}
.mouth {
  position: absolute;
  margin: auto;
  top: 110px;
  left: 0;
  right: 0;
  overflow: hidden;
  height: 40px;
  width: 80px;
  border-radius: 30% 30% 50% 50%;
  background-color: #973462;
  animation: mouth 6s infinite;
}
.tongue{
  position: absolute;
  margin: auto;
  bottom: 0;
  left:0;
  right: 0;
  height: 20px;
  width: 80%;
  border-radius: 50%;
  background-color: #d84f93;
}
.teeth{
  height: 25px;
  width: 15px;
  transform: rotate(180deg);
  border-radius: 100% 100% 0 0/150% 150% 0 0;
  background-color: #ffebd6;
  box-shadow: 
    -65px 0px 0px 0px #ffebd6,
    -22px 5px 0px -1px #ffebd6,
    -42px 5px 0px -1px #ffebd6;
}
.left-ears .large {
  position: absolute;
  top: -20px;
  left: 5px;
  z-index: -1;
  height: 50px;
  width: 50px;
  transform: rotate(100deg);
  border-radius: 80% 15% 55% 50% / 55% 15% 80% 50%;
  background-color: #e25335;
}
.left-ears .small {
  position: absolute;
  top: 30px;
  left: -5px;
  z-index: -1;
  height: 30px;
  width: 30px;
  transform: rotate(80deg);
  border-radius: 80% 15% 55% 50% / 55% 15% 80% 50%;
  background-color: #e25335;
}
.right-ears .large {
  position: absolute;
  top: -20px;
  right: 5px;
  z-index: -1;
  height: 50px;
  width: 50px;
  transform: rotate(180deg);
  border-radius: 80% 15% 55% 50% / 55% 15% 80% 50%;
  background-color: #e25335;
}
.right-ears .small {
  position: absolute;
  top: 30px;
  right: -5px;
  z-index: -1;
  height: 30px;
  width: 30px;
  transform: rotate(180deg);
  border-radius: 80% 15% 55% 50% / 55% 15% 80% 50%;
  background-color: #e25335;
}
.shadow {
  margin-top:1rem;
  height: 25px;
  width: 250px;
  border-radius: 50%;
  background-color: rgba(0,0,0,.7);
  animation: zoom 3s infinite;
}

@keyframes eyemove {
  0% { transform: translateX(0px); } 
  20%, 25% { transform: translateX(10px); }
  35%, 45% { transform: translateY(-5px); }  
  50% { transform: translateX(0px); }
}
@keyframes blink {
  0%, 60% { height: 0; }
  65% { height: 55%; }
  70% { height: 0; }
  75% { height: 55%; }
  80%, 100% { height: 0; }
}
@keyframes float {
  0%, 100%{
    transfrom: translateY(0);
  }
  50%{
    transform: translateY(-20px);
  }
}
@keyframes zoom {
  0%, 100%{
    transform: scale(1);
  }
  50%{
    transform: scale(0.7);
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console