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

              
                link(
  href="https://fonts.googleapis.com/css?family=Sulphur+Point:400,700&display=swap" 
  rel="stylesheet"
)

.corgi
  .corgi_patterns
    .corgi_pattern
    .corgi_pattern
  .corgi_ears
    .corgi_ear
    .corgi_ear
  .corgi_eyes
    .corgi_eye
    .corgi_eye
  .corgi_snout
    .corgi_nose
    .corgi_smile
      .corgi_flap
      .corgi_flap
    .corgi_tongue
  .corgi_feet
    .corgi_foot
      .corgi_paw
        .corgi_bean
        .corgi_bean
        .corgi_bean
        .corgi_bean
    .corgi_foot
      .corgi_paw
        .corgi_bean
        .corgi_bean
        .corgi_bean
        .corgi_bean
  .corgi_hearts
    a.corgi_heart(
      href="https://www.kiwihen.com/"
      target="_blank"
    ) ❤
    a.corgi_heart(
      href="https://www.kiwihen.com/"
      target="_blank"
    ) ❤  
p.corgi_credit Dis design by 
  a.corgi_credit_link(
    href="https://www.kiwihen.com/"
    target="_blank"
  ) Kiwihen
              
            
!

CSS

              
                /* ================
// Corgi
// ============= */

.corgi {
  height: 270px;
  width: 420px;
  
  position: relative;
  
  background:
    radial-gradient(
      ellipse at bottom,
        #cebbad,
        #eceaeb 50%
    );
  border-radius: 50% 50% 120px 120px;
  border-radius: 190px 190px 105px 105px / 160px 160px 110px 110px;
  perspective: inherit;
  transform-style: preserve-3d;
  transition: transform .5s;
  transform: 
    scale(.5)
    rotateY(-30deg)
    rotateX(15deg);
  
  @media screen and (min-width: 800px) and (min-height: 500px) {
    transform: 
      scale(1)
      rotateY(-30deg)
      rotateX(15deg);
  }
  
  &:after {
    height: 2px;
    width: 200%;
    
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: -4;
    
    background: #000;
    content: "";
    transform: translate(-50%, 0);
  }
}

.corgi_patterns {
  height: 100%;
  width: 100%;
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  padding-bottom: 65px;
  
  position: absolute;
  top: 0;
  left: 0;
  
  border-radius: inherit;
}

.corgi_pattern {
  height: 100%;
  width: 42%;
  
  &:first-child {
    background:
      linear-gradient(
        -45deg,
          #c99c7d,
          #e7d0be
      );
    border-radius: 0px 0px 76px 80px / 90px 80px 103px 65px;
  }
  
  &:last-child {
    background:
      linear-gradient(
        45deg,
          #c99c7d,
          #e7d0be
      );
    border-radius: 0px 0px 80px 76px / 90px 80px 65px 103px;
  }
}

.corgi_ears {
  height: 130px;
  width: 76%;
  display: flex;
  justify-content: space-between;
  
  position: absolute;
  bottom: 80%;
  left: 50%;
  z-index: -2;
  
  transform: translate(-50%, 0);
}

.corgi_ear {
  height: 100%;
  width: 130px;
  
  background:
    linear-gradient(
      to bottom,
        #d8aaad,
        #bf919b
    );
  border-radius: 80px 80px 0px 0px / 130px 130px 0px 0px;
  box-shadow: 
    inset 0 10px 10px 0 #e9ccba,
    inset 0 0 0 20px #dfb9a2;
  transform-origin: center bottom;
  
  &:first-child {
    transform: rotate(-25deg);
    
    .corgi:hover & {
      animation: left_yiggle .4s .8s infinite;
    }
  }
  
  &:last-child {
    transform: rotate(25deg);
    
    .corgi:hover & {
      animation: right_yiggle .4s .8s infinite;
    }
  }
}

@keyframes left_yiggle {
  
  50% {
    transform: rotate(-16deg);
  }
}

@keyframes right_yiggle {
  
  50% {
    transform: rotate(16deg);
  }
}

.corgi_eyes {
  height: 44px;
  width: 210px;
  display: flex;
  justify-content: space-between;
  
  position: absolute;
  top: 42%;
  left: 50%;
  
  transform: 
    translate(-50%, 0)
    scaleY(1);
  
  .corgi:hover & {
    animation: blinky .2s .4s 2;
  }
}

@keyframes blinky {

  50% {
    transform: 
      translate(-50%, 0)
      scaleY(0);
  }
}

.corgi_eye {
  height: 100%;
  width: 44px;
  
  background: #553027;
  border-radius: 50%;
}

.corgi_snout {
  height: 68px;
  width: 74px;
  padding-top: 16px;
  
  position: absolute;
  top: 48%;
  left: 50%;
  
  background: #eceaeb;
  border-radius: 50%;
  transform: translate(-50%, 0);
  
  .corgi:hover & {
    animation: sniggle .2s forwards;
  }
}

@keyframes sniggle {

  25% {
    transform: 
      translate(-50%, 0)
      rotate(15deg);
  }
  
  75% {
    transform: 
      translate(-50%, 0)
      rotate(-15deg);
  }
  
  100% {
    transform: 
      translate(-50%, 0)
      rotate(0);
  }
}

.corgi_nose {
  height: 20px;
  width: 26px;
  margin: 0 auto;
  
  background: #553027;
  border-radius: 50%;
}

.corgi_smile {
  height: 14px;
  width: 48px;
  align-items: flex-end;
  display: flex;
  justify-content: center;
  margin: 0 auto -8px;
  overflow: hidden;
  
  position: relative;
  z-index: 2;
}

.corgi_flap {
  height: 30px;
  width: 50%;
  margin: 0 -1px;
  
  background: #eceaeb;
  border: 2px solid #553027;
  border-radius: 50%;
}

.corgi_tongue {
  height: 38px;
  width: 36px;
  margin: 0 auto;
  
  background:
    linear-gradient(
      to right,
        #cba1a3 48%,
        #dcb5ba 52%
    );
  border-radius: 0 0 50% 50%;
  transform-origin: center top;
  transition: transform .2s;
  
  .corgi:hover & {
    transform: scaleY(0);
  }
}

.corgi_feet {
  height: 62px;
  width: 72%;
  display: flex;
  justify-content: space-between;
  margin-top: -14px;
  
  position: absolute;
  top: 100%;
  left: 50%;
  
  animation: luh-dat .25s steps(2, jump-none) infinite;
  transform-style: preserve-3d;
  transform-origin: center top;
  transform: 
    translate(-50%, 0)
    rotateX(90deg);
}

@keyframes luh-dat {
  
  to {
    margin-top: -2px;
    
    transform: 
      translate(-50%, 0)
      rotateX(170deg);
  }
}

.corgi_foot {
  height: 100%;
  width: 80px;
  
  position: relative;
  
  animation: shade-dat .25s steps(2, jump-none) infinite;
  
  &:first-child {
    background: 
      linear-gradient(
        20deg,
          #ece3da 40%,
          #d1c3b8 90%
      );
    border-radius: 30% 30% 50% 50%;
  }
  
  &:last-child {
    background: 
      linear-gradient(
        -20deg,
          #ece3da 40%,
          #d1c3b8 90%
      );
    border-radius: 30% 30% 50% 50%;
  }
}

@keyframes shade-dat {

  to {
    box-shadow: 0 10px 10px -4px #d1c3b8;
  }
}

.corgi_paw {
  height: 14px;
  width: 20px;
  
  position: absolute;
  bottom: 0;
  left: 50%;
  
  background: #cba1a3;
  border-radius: 50%;
  margin-bottom: 20px;
  transform: translate3d(-50%, 0, -2px);
}

.corgi_bean {
  height: 60%;
  width: 40%;
  
  position: absolute;
  top: 100%;
  left: 50%;
  
  background: inherit;
  border-radius: 50%;
  margin-top: 4px;
  transform-origin: center -4px;
  
  &:nth-child(1),
  &:nth-child(4) {
    height: 60%;
    width: 40%;
  }
  
  &:nth-child(2),
  &:nth-child(3) {
    height: 70%;
    width: 50%;
  }
  
  &:nth-child(1) {
    transform: 
      translate(-175%, -25%)
      rotate(35deg);
  }
  
  &:nth-child(2) {
    transform: 
      translate(-75%, 15%)
      rotate(20deg);
  }
  
  &:nth-child(3) {
    transform: 
      translate(-25%, 15%)
      rotate(-20deg);
  }
  
  &:nth-child(4) {
    transform: 
      translate(75%, -25%)
      rotate(-35deg);
  }
}

.corgi_hearts {
  height: 52px;
  width: 72%;
  display: flex;
  justify-content: space-between;
  
  position: absolute;
  top: 100%;
  left: 50%;
  
  transform-origin: center top;
  transform: 
    translate(-50%, 0)
    rotateX(90deg);
}

.corgi_heart {
  width: 80px;
  
  position: relative;
  
  animation: whootie .25s infinite;
  color: #ff8e9c;
  filter: drop-shadow(0 0 0 #ff00e0);
  font-size: 40px;
  text-align: center;
  text-decoration: none;
  
  &:first-child {
    left: -14px;
  }
}

@keyframes whootie {
  
  50% {
    filter: drop-shadow(0 0 20px #ff00e0);
  }
}


/* ================
// Credit
// ============= */

.corgi_credit {
  margin: 0;
  padding: 10px;
  
  position: absolute;
  bottom: 0;
  left: 0;
  
  color: #fff;
  font-size: 14px;
  
  @media screen and (min-width: 800px) and (min-height: 600px) {
    padding: 20px;
    
    right: 0;
    left: auto;
    
    font-size: 24px;
  }
}

.corgi_credit_link {
  color: inherit;
  font-weight: 700;
}


/* ================
// Structure
// ============= */

*,
*:before,
*:after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  overflow: hidden;
  
  background:
    linear-gradient(
      to top,
        #b79d84 50%,
        #a88f79 52%
      
    );
  font-family: 'Sulphur Point', sans-serif;
}

body {
  position: relative;
  
  align-items: center;
  display: flex;
  justify-content: center;
  
  perspective: 600px;
  perspective-origin: 50% 40%;
  transform-style: preserve-3d;
}
              
            
!

JS

              
                
              
            
!
999px

Console