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">
    <div class="circle"></div>
    <div class="this-is-fine-container">
      <div class="text-globe">
        <div class="text">THIS IS FINE.</div>
        <div class="arrow"></div>
      </div>
      <div class="chair-container">
        <div class="chair">
          <div class="back"></div>
          <div class="seat"></div>
          <div class="foot-container">
            <div class="foot foot-1"></div>
            <div class="foot foot-2"></div>
            <div class="foot foot-3"></div>
            <div class="foot foot-4"></div>
          </div>
        </div>
      </div>
      <div class="dog-container">
        <div class="hat-container">
          <div class="hat">
            <div class="top">
              <div class="band"></div>
            </div>
          </div>
          <div class="bottom-container">
            <div class="left end"></div>
            <div class="bottom"></div>
            <div class="right end"></div>
          </div>
        </div>

        <div class="head-container">
          <div class="ear-container">
            <div class="top ear"></div>
            <div class="bottom ear"></div>
          </div>

          <div class="left eye">
            <div class="pupil"></div>
          </div>
          <div class="right eye">
            <div class="pupil"></div>
          </div>
        </div>

        <div class="left leg-container">
          <div class="top-leg"></div>
          <div class="knee"></div>
          <div class="bottom-leg"></div>
          <div class="feet"></div>
        </div>

        <div class="body-shape-container">
          <div class="head-shape"></div>
          <div class="body-shape"></div>
        </div>

        <div class="right arm">
          <div class="top"></div>
          <div class="elbow"></div>
          <div class="bottom"></div>
        </div>

        <div class="mouth-container">
          <div class="mouth">
            <div class="tooth-container top">
              <div class="teeth teeth-1"></div>
              <div class="teeth teeth-2"></div>
            </div>
            <div class="tooth-container bottom">
              <div class="teeth teeth-1"></div>
              <div class="teeth teeth-2"></div>
            </div>
          </div>
        </div>

        <div class="snout-container">
          <div class="snout">
            <div class="nose"></div>
          </div>
        </div>

        <div class="legs-container">
          <div class="right leg-container">
            <div class="top-leg"></div>
            <div class="knee"></div>
            <div class="bottom-leg"></div>
            <div class="feet"></div>
          </div>
        </div>
        <div class="left arm">
          <div class="top"></div>
          <div class="hand">
            <div class="handle"></div>
            <div class="cup-container">
              <div class="cup"></div>
            </div>
            <div class="fingers-container">
              <div class="finger finger-1"></div>
              <div class="finger finger-2"></div>
              <div class="finger finger-3"></div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

<div class="created">
  <span>Created by</span>
  <a href="https://manz.dev/"><h2>Manz.dev</h2></a>
  <p>on <a href="https://twitch.tv/ManzDev">Twitch</a> / <a href="https://www.youtube.com/watch?v=sCLL0Pf3MT0">Youtube</a></p>
</div>
              
            
!

CSS

              
                @use postcss-nested;
@import url('https://fonts.googleapis.com/css2?family=Nanum+Pen+Script&display=swap');

:root {
  --dog-skin-color: #fdb900;
  --dog-skin-dark-color: #ce9a0d;
  --dog-black-color: #222;
  --dog-tongue-color: #bb4806;
  --fire-color: #fce900;
  --custom-filter:
    drop-shadow(-3px 0 0 var(--dog-black-color))
    drop-shadow(3px 0 0 var(--dog-black-color))
    drop-shadow(0 -3px 0 var(--dog-black-color))
    drop-shadow(0 3px 0 var(--dog-black-color));
}

.container {
  display: flex;
  justify-content: center;
  margin-top: 4em;
}

.this-is-fine-container {
  position: relative;

  & .chair-container {
    position: absolute;
    width: 175px;
    height: 175px;
    transform: translate(25%, 50%);
    display: flex;
    justify-content: center;
    align-items: flex-end;

    & .chair {
      display: flex;
      align-items: flex-end;
    }

    & .back {
      position: absolute;
      background: var(--dog-skin-color);
      border: 3px solid var(--dog-black-color);
      border-radius: 10px 0 0 10px;
      width: 50px;
      height: 75px;
      display: flex;
      justify-content: flex-end;
      transform: translate(-35px, -45px);

      &::before {
        content: "";
        display: block;
        width: 25px;
        height: 85%;
        background: var(--dog-skin-dark-color);
        border: 3px solid var(--dog-black-color);
        border-radius: 20% 0 0 20%;
      }
    }

    & .seat {
      background: var(--dog-skin-color);
      border: 3px solid var(--dog-black-color);
      border-radius: 35% 35% 25% 0;
      width: 75px;
      height: 25px;
      transform: translate(-5px, -35px);
      position: relative;
      z-index: 2;

      &::before {
        position: absolute;
        content: "";
        display: block;
        width: 42px;
        height: 32px;
        background: var(--dog-skin-dark-color);
        border-bottom: 3px solid var(--dog-black-color);
        transform: translate(67px, -15px) skewY(-19deg);
      }
    }

    & .foot-container {
      position: absolute;
      width: 60%;
      height: 25px;
      display: flex;
      justify-content: space-around;
      z-index: 1;

      & .foot {
        background: var(--dog-skin-color);
        border: 3px solid var(--dog-black-color);
        width: 8px;
        height: 120%;
        transform: translate(0, -24px);

        &.foot-1 {
          margin-right: 12px;
        }

        &.foot-2,
        &.foot-4 {
          transform: translate(0, -35px);
          background: var(--dog-skin-dark-color);
        }

        &.foot-3 {
          transform: translate(-10px, -24px);
        }
      }
    }
  }

  & .text-globe {
    position: absolute;
    top: -30px;
    right: -40px;
    filter: var(--custom-filter);

    & .text {
      font-family: "Nanum Pen Script", sans-serif;
      font-size: 32px;
      text-align: center;
      width: 100px;
      height: 75px;
      background: #eee;
      display: flex;
      place-items: center;
      border-radius: 25px / 40px;
    }

    & .arrow {
      width: 30px;
      height: 40px;
      background: #eee;
      clip-path: polygon(0 0, 100% 0, 50% 100%);
      transform: translate(20px, -15px) rotate(35deg);
      position: relative;
      z-index: -1;
    }
  }

  & .dog-container {
    width: 250px;
    height: 300px;
    padding-top: 2em;
    display: flex;
    justify-content: center;

    & .hat-container {
      position: relative;
      z-index: 15;
      transform-origin: 0 0;
      transform: translate(17px, 4px) rotate(-23deg);

      & .hat {
        position: absolute;
        width: 50px;
        height: 45px;
        z-index: 7;
        transform: translate(-16px, -25px);
        justify-content: center;
        overflow: hidden;

        & .top {
          width: 80%;
          height: 150%;
          background: var(--dog-skin-color);
          border: 3px solid var(--dog-black-color);
          border-radius: 50%;
          overflow: hidden;

          & .band {
            height: 30px;
            background: var(--dog-black-color);
            transform: translate(0, 16px);
          }
        }
      }

      & .bottom-container {
        position: absolute;
        z-index: 10;
        filter: var(--custom-filter);

        & .bottom {
          width: 45px;
          height: 25px;
          border: 10px solid var(--dog-skin-color);
          border-radius: 50%;
          border-top: 0;
          clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
          transform: translate(-25px, -10px);
        }

        & .end {
          width: 9px;
          height: 9px;
          background: var(--dog-skin-color);
          display: block;
          position: absolute;
          z-index: 15;
          border-radius: 50%;

          &.left { transform: translate(-275%, 5px); }
          &.right { transform: translate(335%, -29px); }
        }
      }
    }

    & .head-container {
      & .eye {
        position: absolute;
        z-index: 5;
        background: #fff;
        width: 30px;
        height: 38px;
        border: 3px solid var(--dog-black-color);
        border-radius: 50%;
        display: flex;
        overflow: hidden;

        &::after {
          content: "";
          display: block;
          background: var(--dog-skin-color);
          position: absolute;
          top: 0;
          bottom: 0;
          left: 0;
          right: 0;
          border-right: 2px solid var(--dog-black-color);
          animation: blink 4s ease-in-out alternate infinite;
        }

        &.left {
          justify-content: center;
          align-items: center;
          transform: translate(23px, 35px);
        }

        &.right {
          transform: translate(60px, 25px);
          justify-content: flex-end;
          width: 28px;
          height: 32px;
          border-width: 4px;

          & .pupil {
            width: 23px;
            height: 100%;
            transform: translate(1px, 0);
          }
        }

        & .pupil {
          width: 20px;
          height: 28px;
          background: var(--dog-black-color);
          border-radius: 50%;
        }
      }

      & .ear-container {
        position: absolute;
        z-index: 5;
        display: flex;
        flex-direction: column;
        transform: translate(-16px, 35px) rotate(15deg);
        align-items: center;

        & .ear.top {
          width: 35px;
          height: 40px;
          background: var(--dog-black-color);
          clip-path: polygon(50% 0, 100% 100%, 0 100%);
        }

        & .ear.bottom {
          width: 38px;
          height: 50px;
          background: var(--dog-black-color);
          border-radius: 20px 20px 25px 25px;
          transform: translate(0, -8px);
        }
      }
    }

    & .body-shape-container {
      filter: var(--custom-filter);

      & .head-shape {
        width: 70px;
        height: 100px;
        background: var(--dog-skin-color);
        border-radius: 40px;
        transform: translate(10px, 10px) rotate(30deg);
      }

      & .body-shape {
        width: 90px;
        height: 110px;
        background: var(--dog-skin-color);
        border-radius: 50px 0 27px 30px / 30px 30px;
        transform: translate(5px, -40px) rotate(344deg);
      }
    }

    & .right.arm {
      position: absolute;
      width: 60px;
      height: 60px;
      transform: translate(6px, 105px) scale(0.9);
      display: flex;
      flex-direction: column;

      & .top {
        width: 13px;
        height: 23px;
        background: var(--dog-skin-color);
        border: 3px solid var(--dog-black-color);
        border-top: 0;
        border-bottom: 0;
      }

      & .elbow {
        position: absolute;
        width: 13px;
        height: 14px;
        background: var(--dog-skin-color);
        border: 3px solid var(--dog-black-color);
        border-top: 0;
        border-radius: 0 0 0 130% / 51% 80% 80% 160%;
        transform: translate(0, 22px);
        z-index: -1;
      }

      & .bottom {
        position: absolute;
        width: 13px;
        height: 52px;
        background: var(--dog-skin-color);
        border: 3px solid var(--dog-black-color);
        border-top: 0;
        border-bottom: 0;
        transform: translate(26px, 17px) rotate(299deg);
      }
    }

    & .snout-container {
      position: absolute;
      transform: translate(60px, 50px) rotate(-8deg);
      z-index: 10;

      & .snout {
        background: var(--dog-skin-color);
        width: 70px;
        height: 35px;
        border: 3px solid var(--dog-black-color);
        border-radius: 70% 60% 40% 80% / 40% 50% 80% 60%;
        border-left: 0;
        display: flex;
        justify-content: flex-end;
      }

      & .nose {
        background: var(--dog-black-color);
        width: 35px;
        height: 25px;
        border-radius: 45%;
        transform: translate(6px, -2px);
      }
    }

    & .mouth-container {
      position: absolute;
      background: var(--dog-skin-color);
      border-right: 3px solid var(--dog-black-color);
      width: 30px;
      height: 30px;
      transform: translate(37px, 77px) rotate(40deg);
      border-radius: 0 50% 60% 20%;

      & .mouth {
        width: 75%;
        height: 75%;
        border-radius: 0 80% 60% 10%;
        overflow: hidden;
        border: 2px solid var(--dog-black-color);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background:
          var(--dog-black-color)
          radial-gradient(
            circle 70px at bottom left,
            var(--dog-tongue-color) 25%,
            var(--dog-black-color) 27%
          );
        transform: skew(-14deg);

        & .tooth-container {
          display: flex;

          & .teeth {
            width: 10px;
            height: 6px;
            background: #fff;
            border: 1px solid var(--dog-black-color);
            border-radius: 4px;
          }

          &.top {
            transform: translate(-3px, 8px) rotate(-10deg);

            & .teeth-1 {
              position: relative;
              z-index: 5;
            }

            & .teeth-2 {
              position: relative;
              z-index: 4;
              transform: translate(-4px, 0);
            }
          }

          &.bottom {
            transform: translate(-2px, 5px);
          }
        }
      }
    }

    & .leg-container {
      position: absolute;
      width: 75px;
      height: 75px;
      transform: translate(-60px, 148px) rotate(-5deg);

      & .top-leg {
        position: absolute;
        width: 40px;
        height: 14px;
        background: var(--dog-skin-color);
        border: 3px solid var(--dog-black-color);
        border-right: 0;
        border-left: 0;
        border-radius: 20% 0 0 20%;
        top: 0;
        left: 20px;
      }

      & .knee {
        position: absolute;
        width: 15px;
        height: 20px;
        background: var(--dog-skin-color);
        border: 3px solid var(--dog-black-color);
        border-left: 0;
        border-bottom: 0;
        right: 0;
        border-radius: 0 50% 0 0;
      }

      & .bottom-leg {
        position: absolute;
        width: 15px;
        height: 20px;
        background: var(--dog-skin-color);
        border: 3px solid var(--dog-black-color);
        border-top: 0;
        border-bottom: 0;
        top: 20px;
        right: 0;
      }

      & .feet {
        position: absolute;
        width: 30px;
        height: 15px;
        background: var(--dog-skin-color);
        bottom: 18px;
        right: -15px;
        border: 3px solid var(--dog-black-color);
        border-radius: 25% 60% 60% 25%;
        z-index: -1;
      }

      &.left {
        transform: translate(50px, 140px) rotate(-5deg);
      }
    }

    & .left.arm {
      position: absolute;
      z-index: -1;
      width: 70px;
      height: 70px;
      transform: translate(78px, 70px);
      display: flex;
      align-items: center;
      transform-origin: 0 0;
      animation: moveArm 5s linear infinite alternate;

      & .top {
        width: 34px;
        height: 11px;
        background: var(--dog-skin-color);
        border: 3px solid var(--dog-black-color);
      }

      & .hand {
        & .handle {
          position: absolute;
          z-index: 1;
          background: #fff;
          border: 2px solid var(--dog-black-color);
          width: 23px;
          height: 23px;
          border-radius: 52%;
          transform: translate(-7px, -4px);
        }

        & .cup-container {
          transform: translate(5px, -3px);
          position: relative;
          z-index: 5;

          & .cup {
            position: absolute;
            width: 30px;
            height: 37px;
            background: #fff;
            border: 2px solid var(--dog-black-color);
            transform: translate(0, -7px);
            border-radius: 4px 4px 30% 30% / 80%;

            &::before {
              content: "";
              display: block;
              width: 80%;
              height: 5px;
              background: #fff;
              border: 4px solid #111;
              border-radius: 50%;
              transform: translate(-1px, -6px);
            }
          }
        }

        & .fingers-container {
          display: flex;
          flex-direction: column;
          transform: translate(-5px, 2px);
          position: relative;
          z-index: 2;

          & .finger {
            width: 13px;
            height: 5px;
            background: var(--dog-skin-color);
            border: 2px solid var(--dog-black-color);
            border-radius: 10px;

            &.finger-1 { transform: translate(0, -1px); }
            &.finger-2 { transform: translate(1px, -3px); }
            &.finger-3 { transform: translate(2px, -5px); }
          }
        }
      }
    }
  }
}

.circle {
  position: absolute;
  z-index: -5;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(to top, #e97211, #c22121);
  border: 8px solid #222;
  transform: translate(12px, -10px);
}

@keyframes moveArm {
  0% {
    transform: translate(78px, 70px) rotate(0);
  }

  100% {
    transform: translate(78px, 70px) rotate(50deg);
  }
}

@keyframes blink {
  0% {
    transform: translate(-10px, 0) scale(2) rotate(75deg);
  }

  10%,
  100% {
    transform: translate(-10px, -50px) scale(2) rotate(75deg);
  }
}

.created {
  background: 
    url(https://assets.codepen.io/154065/internal/avatars/users/default.png),
    linear-gradient(to bottom, #884ced, #ec1cce);
  background-size: 75px 75px, cover;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 2em;
  
  & span,
  & h2,
  & p,
  & a {
    font-family: Montserrat;
    margin: 0;
  }
  
  & a,
  & p,
  & span {
    color: #fff;    
  }
  
  & h2 {
    font-weight: 700;
    transform: translate(0, -4px);    
  }
  
  & a {
    text-decoration-color: rgba(255,255,255,0.4);
  }
  
  & a:hover {
    color: #e6e82a;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console