cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <div class="background">
  
  <div class="gunther__foot gunther__foot--left">
    <div class="toe toe--left"></div>
    <div class="toe toe--middle"></div>
    <div class="toe toe--right"></div>
  </div>
  <div class="gunther__foot gunther__foot--right">
    <div class="toe toe--left"></div>
    <div class="toe toe--middle"></div>
    <div class="toe toe--right"></div>
  </div>
  
  <div class="gunther__arm gunther__arm--left"></div>
  
  <div class="gunther__body">
    
    <div class="gunther__inner"></div>
    
    <div class="eyes">
      <div class="eyes__eye eyes__eye--left"></div>
      <div class="eyes__eye eyes__eye--right"></div>
    </div>
    
    <div class="beak">
      <div class="beak__bottom"></div>
      <div class="beak__top"></div>
    </div>
    
  </div> <!-- .body -->
  
  <div class="gunther__arm gunther__arm--right"></div>
  
</div>
            
          
!
            
              $stk-clr: #9b5802;
$skin-clr: #ffefef;

.background {
  align-items: center;
  background-color: #35be8b;
  display: flex;
  justify-content: center;
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
}

.gunther__body {
  background-color: $stk-clr;
  border-radius: 30vh;
  border-bottom-left-radius: 15vh;
  border-bottom-right-radius: 15vh;
  height: 80vh;
  position: relative;
  width: 50vh;
}

.gunther__inner {
  background-color: $skin-clr;
  border-radius: 30vh;
  border-bottom-left-radius: 18vh;
  border-bottom-right-radius: 5vh;
  height: 74vh;
  position: absolute;
  bottom: 1vh; left: 1vh;
  width: 38vh;
}

.eyes {
  height: 15vh;
  position: absolute;
  top: 18vh; left: -5vh;
  transform: rotate(3deg);
  width: 40vh;
}

.eyes__eye {
  background-color: $stk-clr;
  border-radius: 50%;
  height: 15vh;
  position: absolute;
  left: 0;
  width: 15vh;
  &::before {
    background-color: $skin-clr;
    border-radius: 50%;
    border-bottom-left-radius: 2.6vh;
    border-bottom-right-radius: 2.6vh;
    content: '';
    display: block;
    height: 6vh;
    position: absolute;
    top: 1.6vh; left: .6vh;
    transform: rotate(-36deg);
    width: 10vh;
  }
  &::after {
    background-color: $skin-clr;
    border-radius: 50%;
    border-top-left-radius: 2vh;
    border-top-right-radius: 2vh;
    content: '';
    display: block;
    height: 5vh;
    position: absolute;
    bottom: 1.6vh; right: .6vh;
    transform: rotate(-36deg);
    width: 8vh;
  }
}

.eyes__eye--right {
  left: auto; right: 0;
}

.beak {
  height: 15vh;
  position: absolute;
  top: 30vh; left: -13vh;
  width: 28vh;
}

.beak__top {
  // display: none;
  border-color: transparent $stk-clr transparent transparent;
  border-style: solid;
  border-width: 7vh 28vh 2vh 0;
  position: absolute;
  top: 0;
  transform: rotate(-10deg);

  &::before {
    background-color: $stk-clr;
    border-radius: 50%;
    content: '';
    display: block;
    height: 9vh;
    position: absolute;
    top: -7vh; right: -33vh;
    width: 9vh;
  }
}

.beak__bottom {
  // display: none;
  border-color: transparent $stk-clr transparent transparent;
  border-style: solid;
  border-width: 6vh 26vh 2vh 0;
  position: absolute;
  top: 6vh; left: 4vh;
  transform: rotate(-30deg);

  &::before {
    background-color: $stk-clr;
    border-radius: 50%;
    content: '';
    display: block;
    height: 9vh;
    position: absolute;
    top: -7vh; right: -31vh;
    width: 10vh;
  }
  &::after {
    border-color: transparent $skin-clr transparent transparent;
    border-style: solid;
    border-width: 4vh 18vh 1vh 0;
    content: '';
    display: block;
    // height: 8vh;
    position: absolute;
    top: -5vh; left: 8vh;
    // width: 8vh;
  }
}

.gunther__arm {
  background-color: $stk-clr;
  border-top: .6vh solid $stk-clr;
  border-right: 1vh solid $skin-clr;
  border-bottom: 0;
  border-radius: 50%;
  border-top-left-radius: 30%;
  border-bottom-left-radius: 50%;
  height: 23vh;
  width: 13vh;
}

.gunther__arm--left {
  border: 0;
  transform: rotate(36deg) translate(18vh, 11vh);
}

.gunther__arm--right {
  transform: rotate(36deg) translate(-2vh, 28vh);
}

.gunther__foot {
  height: 10vh;
  position: absolute;
  top: 84vh;
  width: 15vh;
}

.gunther__foot--left {
  margin-left: 12vh;
}
.gunther__foot--right {
  margin-left: 36vh;
  top: 86vh;
  transform: rotate(-10deg);
}

.toe {
  background: $skin-clr;
  border-bottom: 1vh solid $stk-clr;
  border-radius: 50%;
  height: 6vh;
  position: absolute;
  width: 8vh;
}
.toe--left {
  border-left: 1vh solid $stk-clr;
  left: 0;
}
.toe--middle {
  top: 3vh; left: 4vh;
}
.toe--right {
  border-right: 1vh solid $stk-clr;
  top: 2vh; left: 10vh;
}



            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console