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.

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

              
                <input id="trigger" class="toggle-checkbox" type="checkbox"><label for="trigger">Boing!</label>
<div class="z">
  <svg fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 50 210 400">
  <path fill="#91c1a3" fill-rule="nonzero" d="M207.83 264.33h-39.27v24.78h39.27z"/>
  <path id="bicep" fill="#3d5070" fill-rule="nonzero" d="M120.18 215.08l-99.01-.3v-9.9h9.9v-9.92H41v-9.91h9.91v-9.91h9.91v-9.91h59.37v49.85z"/>
  <path fill="#3d5070" fill-rule="nonzero" d="M59 214.75h109.51v9.94h9.6v9.9h9.9v9.92h9.91v9.9h9.91v9.92l-29.73.15v15.3h-9.62v-9.49l-9.36-.07v-5.64l-10.69.05v98.42H59.46l-.45-148.3z"/>
  <path fill="#70443d" fill-rule="nonzero" d="M59.46 404.84v-74.13h88.97v24.25h.04v49.88H108.9V363.8h-9.9v41.04H59.46z"/>
  <path fill="#2d2d2d" fill-rule="nonzero" d="M99.1 450H34.47v-38.08h25V400.7h39.65V450zM108.83 400.7h39.64v11.22h25V450h-64.64v-49.3z"/>
  <path fill="#9cd3b3" fill-rule="nonzero" d="M158.28 276.72h49.55v29.73h-9.72v9.91h-20v-9.91h-9.55v-19.82h-10.28v-9.91z"/>
  <path fill="#91c1a3" fill-rule="nonzero" d="M79.29 204.84h49.55v19.7H79.29z"/>
  <path fill="#2a0e00" d="M64.67 214.73h7.46V322.8h-7.46zM136.92 214.73h7.46V322.8h-7.46z"/>
  <path fill="#70443d" d="M113.65 230.42h-3v6.12h-3.61v14.57h1.67v17.56h2.5v33.19h1.45v10.69h-1.45v1.51h-2.5v1.83h-1.67v1.81h-1.4v1.6h-2.94v-1.6h-1.39v-1.8h-1.67v-1.84h-2.36v-1.51h-1.45v-10.7h1.45v-33.18h2.36v-17.56h1.67v-14.57h-3.8v-6.12h-3v-6.97h19.14v6.97z"/>
  <path fill="#fff" d="M73.86 225.8h7v2.14h5.56v2.68h10.7l.05-2.97 2.9-.04v-8H94.5v-2.67l-6.64.05v-3.58l-3.63.05v-5.38H73.86v17.71zM134.97 225.8h-7v2.14h-5.56v2.68h-10.7l-.05-2.97-2.9-.04v-8h5.56v-2.67l6.64.05v-3.58l3.63.05v-5.38h10.38v17.71z"/>
        <g id="head">
    <path id="alfalfa" d="M102.824,77.957L102.824,58.594L104.556,58.594L104.556,56.07L106.288,56.07L106.288,77.957L102.824,77.957Z" style="fill:rgb(79,46,19);"/>
    <path fill="#4f2e13" fill-rule="nonzero" d="M159.18 36.39h10.65v19.7H81.62v-19.7h8.92v-9.91h68.64v9.9z" transform="translate(-21.17 49.52)"/>
    <path fill="#9cd3b3" fill-rule="nonzero" d="M160.69 56.21h9.14v19.82h19.82v30.24h-10.39v29.23h-9.43v9.67h-9.15v10.15H140.6v9.9h-30.24v-9.9H90.54v-10.15h-9.9v-9.67h-9.92v-29.23h-9.94V76.03h19.85V56.21h9.91V46.3h70.14v9.91z" transform="translate(-21.17 49.52)"/>
    <path fill="#fbeb8e" fill-rule="nonzero" d="M99 36h9v9h-9z" transform="matrix(3.6945 0 0 3.35988 -256.74 -5.32)"/>
    <path fill="#fbeb8e" fill-rule="nonzero" d="M63 36h9v9h-9z" transform="matrix(3.27622 0 0 3.35988 -137.03 -5.32)"/>
    <path id="mouth" fill="#758b7c" fill-rule="nonzero" d="M81 90h9v9h-9z" />
    <path fill="#444445" fill-rule="nonzero" d="M63 45h9v9h-9zM108 36h9v9h-9z" transform="translate(0 76) scale(1.1012)"/>
    <path fill="#4f2e13" fill-rule="nonzero" d="M135 27h9v9h-9zM45 27h9v9h-9z" transform="matrix(1.1012 0 0 4.36374 0 -12.1)"/>
    <path fill="#2a0e00" d="M122.35 62.62c1.4-.31 3.7-.09 5.63-.01H163.76c.57.1 1 .56 1.02 1.14v.3l17.14 7.15.04 4.86h-2.18l-15-5.76v28.75a1.2 1.2 0 01-1.14 1.15h-35.66a1.2 1.2 0 01-1.14-1.15v-16.5h-3.5v16.5a1.2 1.2 0 01-1.15 1.15H86.54a1.2 1.2 0 01-1.15-1.15V70.46l-14.68 5.6h-2.68l.05-4.86 17.31-6.98v-.47a1.2 1.2 0 011.15-1.14H122.3l.04.01zM87.68 64.9v33h33.37v-33H87.68zm74.81 0h-33.36v33h33.36v-33zm-35.65 0h-3.5v15.36h3.5V64.9z" transform="translate(-21.17 49.52)"/>
    <path fill="#91c1a3" fill-rule="nonzero" d="M90 54h9v9h-9z" transform="matrix(1.1012 0 0 3.27622 0 -41.46)"/>
  </g>
  <path id="arm2" fill="#91c1a3" fill-rule="nonzero" d="M0 171h9v9H0z" />
  <path id="forearm" fill="#9cd3b3" fill-rule="nonzero" d="M28.61 220.71h44.87v24.78H28.61z" />
  <path id="hand" fill="#9cd3b3" fill-rule="nonzero" d="M66.71 252.87v-39.28h1.68v-2.32h18.83v2.32h9.23v9.54h5.9v20h-5.9v9.74H66.7z"/>
  <path fill="#2d2d2d" fill-rule="nonzero" d="M59.46 322.8h88.97v9.91H59.46z"/>

</svg>

</div>



<div class="logo"><a href="https://undead.institute" target="_blank"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1804713/UndeadInsti-LogoOnWhite.png" alt="Getting Braaains should be fun"></a></div>
              
            
!

CSS

              
                #mouth { 
  transform: translate(-152px, 88px) scaleX(3);
  position: absolute;
}
.toggle-checkbox:checked ~ .z #hand { 
  animation: 6s ease-in-out 0s handmove forwards infinite;
}

.toggle-checkbox:checked ~ .z #forearm { 
  animation: 6s ease-in-out 0s forearmmove forwards infinite;
}
@keyframes handmove {
  0%, 60%, 100% {
    transform: translate(-28px, -125px);
  }
  30% {
    transform: translate(17px, -145px);
  }
}
#hand {
    transform: translate(-28px, -125px);
}
#head {
    transform: translateY(10px);
}
.toggle-checkbox:checked ~ .z #head { 
  animation: 6s ease-in-out 0s headmove forwards infinite;
}
@keyframes headmove {
  0%, 60%, 100% {
    transform: translateY(10px);
  }
  30% {
    transform: translateY(20px);
  }
}
#forearm {
    transform-origin: 0% 20%;
    transform: rotate(-25deg) translate(-140px, -155px) scale(2.5, 1.3);
}
@keyframes forearmmove {
  0%, 60%, 100% {
    transform: rotate(-25deg) translate(-140px, -155px) scale(2.5, 1.3);
  }
  30% {
    transform: rotate(-25deg) translate(-105px, -155px) scale(2.55, 1.3);
  }
  
}
.toggle-checkbox:checked ~ .z #arm2 { 
  animation: 6s ease-in-out 0.15s arm2move forwards infinite;
}
@keyframes arm2move {
  0%, 60%, 100% {
    transform: translate(0,-1073px) scaleX(4) scaleY(7);
  }
  30% {
    transform: translate(0,-1083px) scaleX(4) scaleY(7);
  }
}
#arm2 {
    transform: translate(0,-1073px) scaleX(4) scaleY(7);
}

.toggle-checkbox:checked ~ .z #bicep { 
  animation: 6s ease-in-out 0.1s bicepmove forwards infinite;
}
@keyframes bicepmove {
  0%, 60%, 100% {
    transform: translate(-21px, 400px) scaleY(-1);
  }
  30% {
    transform: translate(-21px, 389px) scaleY(-1);
  }
}
#bicep {
    transform: translate(-21px, 400px) scaleY(-1);
}
.toggle-checkbox:checked ~ .z #alfalfa { 
  animation: 6s linear 0s boing forwards infinite;
}
#alfalfa {
  transform: rotate(0);
  transform-origin: 50% 20%;
}
@keyframes boing {
  0%, 30%, 70.5%, 100% {
    transform: rotate(0) skewX(0);
  }
  40%, 64% {
    transform: rotate(-90deg) skewX(0);
  }
  65% {
    transform: rotate(0) skewX(20deg);
  }
  66% {
    transform: rotate(0) skewX(-20deg);
  }
  67% {
    transform: rotate(0) skewX(10deg);
  }
  68% {
    transform: rotate(0) skewX(-10deg);
  }
  69% {
    transform: rotate(0) skewX(3deg);
  }
  70% {
    transform: rotate(0) skewX(-3deg);
  }
}
.z {
  width: 100%;
  max-width: 250px;
  margin: auto;
}
body {
  background-color: lightcyan;
  overflow: hidden;
}
.logo {
  width: 100%;
  max-width: 400px;
  position: absolute;
  top: 0;
  right: 0;
}
.logo img {
  width: 100%;
}
input{
  display: none;
}
input:checked + label {
  box-shadow: inset 3px 3px 2px #660000;
  transform: translate(3px, 3px);
}
label {
  font-size: 1.5em;
  color: #FFF;
  background-color: #960B0B;
  width: 170px;
  height: 30px;
  text-align: center;
  font-weight: bold;
  display: block;
  border-radius: 7px;
  box-shadow: 3px 3px 0 #660000;
  cursor: pointer;
}

              
            
!

JS

              
                
              
            
!
999px

Console