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">Humanize!</label>

<div class="z">
<svg fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 400 450">
  <path fill="#91c1a3" fill-rule="nonzero" d="M0 264.33h39.27v24.78H0z"/>
  <path id="bicep" fill="#43703d" 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="#43703d" fill-rule="nonzero" d="M148.82 214.75H39.32v9.94h-9.59v9.9h-9.9v9.92H9.9v9.9H0v9.92l29.73.15v15.3h9.62v-9.49l9.37-.07v-5.64l10.68.05v98.42h88.97l.45-148.3z"/>
  <path fill="#70503d" 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="M49.55 276.72H0v29.73h9.73v9.91h20v-9.91h9.54v-19.82h10.28v-9.91z"/>
  <path fill="#91c1a3" fill-rule="nonzero" d="M79.29 204.84h49.55v19.7H79.29z"/>
  <g id="head">
    <path fill="#4f2e13" fill-rule="nonzero" d="M159.18 36.39h10.65v29.7H80.62v-29.7h9.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)"/>
    <g id="righteye">
      <path fill="#fbeb8e" fill-rule="nonzero" d="M99 36h9v9h-9z" transform="matrix(3.6945 0 0 3.35988 -256.74 -5.32)"/>
      <path fill="#444445" fill-rule="nonzero" d="M108 36h9v9h-9z" transform="translate(0 76) scale(1.1012)"/>
    </g>
    <g id="lefteye">
      <path fill="#fbeb8e" fill-rule="nonzero" d="M63 36h9v9h-9z" transform="matrix(3.27622 0 0 3.35988 -137.03 -5.32)"/>
      <path fill="#444445" fill-rule="nonzero" d="M63 45h9v9h-9z" transform="translate(0 76) scale(1.1012)"/>
    </g>
    <path id="mouth" fill="#758b7c" fill-rule="nonzero" d="M81 90h9v9h-9z" transform="matrix(3.30359 0 0 1.1012 -178.4 76)"/>
    <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="#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" />
  <g id="armwrap">
  <path id="arm" fill="#9cd3b3" fill-rule="nonzero" d="M0 171h9v9H0z"/>
  </g>
  <path fill="#2d2d2d" fill-rule="nonzero" d="M59.46 322.8h88.97v9.91H59.46z"/>
  <g id="words">
    <path fill="#fff" d="M216 154.45v-22h11.59v-12.47h13.13V107.5h11.83V95.9h101.08v11.6h11.84v12.48h13.13v12.48h11.59v55.99h-11.6v12.48h-13.12v12.48h-11.84V225H252.55v-11.59h-11.83v-12.48h-13.13v-12.48H216v-10.19h-24.72v-12.02h11.56v-11.8H216z"/>
    <path fill-rule="nonzero" d="M.88-.5v.25H.61V-.5H.5v-.25H.37V-1H.26v.88h.13V0H0v-.13h.13v-1H0v-.12h.5V-1h.13v.25h.12v.25h.13v-.25H1V-1h.13v-.25h.5v.13H1.5v1h.13V0h-.5v-.13h.12V-1h-.13v.25H1v.25H.87z" transform="matrix(13.33332 0 0 13.3333 252.67 130.29)"/>
    <path fill-rule="nonzero" d="M.63-.5v-.13H.5v-.12H.37v.13H.26v.12h.38zm.12-.13h.13v.26H.24v.12h.13v.13h.24v-.13h.26v.13H.74V0h-.5v-.13H.12v-.12H0v-.38h.13v-.12h.12v-.13h.38v.13h.12v.13z" transform="matrix(13.33332 0 0 13.3333 276 130.29)"/>
    <path fill-rule="nonzero" d="M.38-1.13v.25h.24v.13H.39v.63h.24V0H.26v-.13H.12v-.62H0v-.13h.13v-.24h.24z" transform="matrix(13.33332 0 0 13.3333 296 130.29)"/>
    <path fill-rule="nonzero" d="M.88-.75v.13H1v.37H.87v.13H.76V0h-.5v-.13H.12v-.12H0v-.38h.13v-.12h.12v-.13h.5v.13h.13zm-.13.5v-.38H.62v-.12H.39v.13H.24v.37h.13v.13h.24v-.13h.13z" transform="matrix(13.33332 0 0 13.3333 306 130.29)"/>
    <path fill-rule="nonzero" d="M.38-1.13v.25h.24v.13H.39v.63h.24V0H.26v-.13H.12v-.62H0v-.13h.13v-.24h.24z" transform="matrix(13.33332 0 0 13.3333 321 130.29)"/>
    <path fill-rule="nonzero" d="M.63-.5v-.13H.5v-.12H.37v.13H.26v.12h.38zm.12-.13h.13v.26H.24v.12h.13v.13h.24v-.13h.26v.13H.74V0h-.5v-.13H.12v-.12H0v-.38h.13v-.12h.12v-.13h.38v.13h.12v.13z" transform="matrix(13.33332 0 0 13.3333 331 130.29)"/>
    <path fill-rule="nonzero" d="M.13-.88h.62v.26H.62v-.13H.26v.13h.13v.12h.24v.13h.13v.24H.62V0H0v-.25h.13v.13H.5v-.13H.37v-.13H.14V-.5H0v-.25h.13v-.13z" transform="matrix(13.33332 0 0 13.3333 344.33 130.29)"/>
    <path fill-rule="nonzero" d="M1-.75v.63h.13V0h-.5v-.13h.12v-.62H.5v.13H.37v.5H.5V0H0v-.13h.13v-1H0v-.12h.38v.5H.5v-.13h.38v.13H1z" transform="matrix(13.33332 0 0 13.3333 233.5 154.29)"/>
    <path fill-rule="nonzero" d="M1-.13h.13V0H.74v-.13H.62V0H.26v-.13H.12v-.62H0v-.13h.38v.76h.24v-.13h.13v-.5H.62v-.13H1v.76z" transform="matrix(13.33332 0 0 13.3333 250.17 154.29)"/>
    <path fill-rule="nonzero" d="M.88-.75h.24v-.13h.38v.13h.13v.63h.12V0h-.5v-.13h.13v-.62h-.25v.13H1v.5h.13V0h-.5v-.13h.12v-.62H.5v.13H.37v.5H.5V0H0v-.13h.13v-.62H0v-.12h.38v.12H.5v-.13h.38v.13z" transform="matrix(13.33332 0 0 13.3333 266.83 154.29)"/>
    <path fill-rule="nonzero" d="M.63-.5v-.13H.5v-.12H.37v.13H.26v.12h.38zm.12-.13h.13v.26H.24v.12h.13v.13h.24v-.13h.26v.13H.74V0h-.5v-.13H.12v-.12H0v-.38h.13v-.12h.12v-.13h.38v.13h.12v.13z" transform="matrix(13.33332 0 0 13.3333 291.83 154.29)"/>
    <path fill-rule="nonzero" d="M.5-.5v.25h.13V-.5h.12v-.25H.62v-.13H1v.13H.87v.25H.76v.25H.62V0H.5v.25H.37v.13H.14V.11h.24v-.37H.26V-.5H.12v-.25H0v-.13h.5v.13H.37v.25H.5z" transform="matrix(13.33332 0 0 13.3333 305.17 154.29)"/>
    <path fill-rule="nonzero" d="M.25 0H.12v-.25h.26v.38H.24v.12H.12V.12h.13V0z" transform="matrix(13.33332 0 0 13.3333 320.17 154.29)"/>
    <path fill-rule="nonzero" d="M.88-.75h.24v-.13h.38v.13h.13v.63h.12V0h-.5v-.13h.13v-.62h-.25v.13H1v.5h.13V0h-.5v-.13h.12v-.62H.5v.13H.37v.5H.5V0H0v-.13h.13v-.62H0v-.12h.38v.12H.5v-.13h.38v.13z" transform="matrix(13.33332 0 0 13.3333 335.17 154.29)"/>
    <path fill-rule="nonzero" d="M.5-.5v.25h.13V-.5h.12v-.25H.62v-.13H1v.13H.87v.25H.76v.25H.62V0H.5v.25H.37v.13H.14V.11h.24v-.37H.26V-.5H.12v-.25H0v-.13h.5v.13H.37v.25H.5z" transform="matrix(13.33332 0 0 13.3333 360.17 154.29)"/>
    <path fill-rule="nonzero" d="M.38-.13h.24v-.62H.39v.13H.24v.37h.13v.13zM.5-1.25h.38v1.13H1V0H.25v-.13H.12v-.12H0v-.38h.13v-.12h.12v-.13h.38v-.24H.5v-.13z" transform="matrix(13.33332 0 0 13.3333 230.17 178.29)"/>
    <path fill-rule="nonzero" d="M.75-.75v.63h.13V0H.11v-.13H0v-.24h.13V-.5H.5v-.25H.12v-.13h.5v.13h.13zm-.5.63H.5v-.26H.25v.26z" transform="matrix(13.33332 0 0 13.3333 245.17 178.29)"/>
    <path fill-rule="nonzero" d="M1-.75v-.13h.38v.13h-.13v.38h-.13V0H.88v-.25H.76V-.5H.62v.25H.5V0H.25v-.38H.12v-.37H0v-.13h.5v.13H.37v.38H.5V-.5h.13v-.38h.24v.38H1v.13h.13v-.38H1z" transform="matrix(13.33332 0 0 13.3333 258.5 178.29)"/>
    <path fill-rule="nonzero" d="M0 .13h.25v.12h.38V0H.24v-.13H.12v-.12H0v-.38h.13v-.12h.12v-.13h.63V.25H.74v.13H.12V.24H0V.12zm.63-.88H.36v.13H.26v.37h.13v.13h.24v-.63z" transform="matrix(13.33332 0 0 13.3333 278.5 178.29)"/>
    <path fill-rule="nonzero" d="M.13-.75h.63v.25H.13z" transform="matrix(13.33332 0 0 13.3333 291.83 178.29)"/>
    <path fill-rule="nonzero" d="M.38-.13h.24v-.62H.39v.13H.24v.37h.13v.13zM.5-1.25h.38v1.13H1V0H.25v-.13H.12v-.12H0v-.38h.13v-.12h.12v-.13h.38v-.24H.5v-.13z" transform="matrix(13.33332 0 0 13.3333 305.17 178.29)"/>
    <path fill-rule="nonzero" d="M1-.13h.13V0H.74v-.13H.62V0H.26v-.13H.12v-.62H0v-.13h.38v.76h.24v-.13h.13v-.5H.62v-.13H1v.76z" transform="matrix(13.33332 0 0 13.3333 320.17 178.29)"/>
    <path fill-rule="nonzero" d="M.38-.13h.24v-.62H.39v.13H.24v.37h.13v.13zM.5-1.25h.38v1.13H1V0H.25v-.13H.12v-.12H0v-.38h.13v-.12h.12v-.13h.38v-.24H.5v-.13z" transform="matrix(13.33332 0 0 13.3333 336.83 178.29)"/>
    <path fill-rule="nonzero" d="M.63-.5v-.13H.5v-.12H.37v.13H.26v.12h.38zm.12-.13h.13v.26H.24v.12h.13v.13h.24v-.13h.26v.13H.74V0h-.5v-.13H.12v-.12H0v-.38h.13v-.12h.12v-.13h.38v.13h.12v.13z" transform="matrix(13.33332 0 0 13.3333 351.83 178.29)"/>
    <path fill-rule="nonzero" d="M.13-.75h.63v.25H.13z" transform="matrix(13.33332 0 0 13.3333 365.17 178.29)"/>
    <path fill-rule="nonzero" d="M0 .13h.25v.12h.38V0H.24v-.13H.12v-.12H0v-.38h.13v-.12h.12v-.13h.63V.25H.74v.13H.12V.24H0V.12zm.63-.88H.36v.13H.26v.37h.13v.13h.24v-.63z" transform="matrix(13.33332 0 0 13.3333 281.83 202.29)"/>
    <path fill-rule="nonzero" d="M1-.13h.13V0H.74v-.13H.62V0H.26v-.13H.12v-.62H0v-.13h.38v.76h.24v-.13h.13v-.5H.62v-.13H1v.76z" transform="matrix(13.33332 0 0 13.3333 295.17 202.29)"/>
    <path fill-rule="nonzero" d="M.5-.5v.25h.13V-.5h.12v-.25H.62v-.13H1v.13H.87v.25H.76v.25H.62V0H.5v.25H.37v.13H.14V.11h.24v-.37H.26V-.5H.12v-.25H0v-.13h.5v.13H.37v.25H.5z" transform="matrix(13.33332 0 0 13.3333 311.83 202.29)"/>
  </g>
  <g id="mask">
    <path fill="#8c6442" d="M283.36 418.26v-78.69h14.75v78.69h-3.4v3.39h-7.95v-3.4h-3.4z" transform="matrix(.98075 0 0 1.01766 4246.49 2169.63)"/>
    <path id="hand" fill="#9cd3b3" fill-rule="nonzero" d="M179.45 227.2H229v29.73h-9.73v9.91h-20v-9.9h-9.54V237.1h-10.28v-9.91z" transform="matrix(0 .95463 -.92 0 4757.01 2362.24)"/>
    <path fill="#4f2e13" fill-rule="nonzero" d="M159.18 36.39h10.65v29.7H81.62v-29.7h8.92v-9.91h68.64v9.9z" transform="matrix(.9917 0 0 1.01766 4406.96 2372.37)"/>
    <path fill="#fccb98" d="M333.75 333.55h14.14v19.82h14.83v30.24h-10.4v29.22h-9.43v9.68h-9.14v10.14h-20.08v9.92h-30.24v-9.92H263.6v-10.14h-9.91v-9.68h-9.91v-29.22h-9.94v-30.24h14.85v-19.82h14.9v-9.91h70.15v9.9zm-20.59 79.28h-29.73v-9.9h29.73v9.9zm23.34-39.13h-33.25v-30.24h33.25v30.24zm-43.4 0h-29.5v-30.24h29.5v30.24z" transform="matrix(.98075 0 0 1.01766 4239.09 2090.01)"/>
    <path fill="#4f2e13" fill-rule="nonzero" d="M135 27h9v9h-9zM45 27h9v9h-9z" transform="matrix(1.08 0 0 4.44081 4429.58 2309.54)"/>
    <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="matrix(.98075 0 0 1.01766 4408.82 2372.24)"/>
    <path fill="#e1b389" fill-rule="nonzero" d="M90 54h9v9h-9z" transform="matrix(1.08 0 0 3.33409 4429.58 2279.66)"/>
  </g>
</svg>

</div>


<div class="logo"><a href="https://undead.institute" target="_blank"><img src="https://undead.institute/files/animation/UndeadInsti-LogoOnWhite.png" alt="Getting Braaains should be fun"></a></div>
              
            
!

CSS

              
                .toggle-checkbox:checked ~ .z #words { 
  animation: 2s steps(1, end) 0s showwords forwards;
}
@keyframes showwords{
  from {
    opacity:0;
  }
  to {
    opacity: 1;
  }
}

.toggle-checkbox:checked ~ .z #mask { 
  animation: 2s ease-in-out 0s maskmove forwards;
}
@keyframes maskmove {
  0% {
    transform: rotate(20deg) translate(-4410px, -2270px);
  }
  100% {
    transform: rotate(2deg) translate(-4440px, -2320px);
  }
}
#mask {
  transform-origin: center bottom;
    transform: rotate(20deg) translate(-4410px, -2270px);
}

.toggle-checkbox:checked ~ .z #bicep { 
  animation: 2s ease-in-out 0s bicepmove forwards;
}
#bicep {
  transform: translate(-240px, 50px) scaleX(-1);
  transform-origin: center center;
  
}
@keyframes bicepmove {
  0% {
  transform: translate(-240px, 50px) scaleX(-1);
  }
  100% {
    transform: translate(-125px, 49px) scaleX(-0.25);
  }
}


.toggle-checkbox:checked ~ .z #arm { 
  animation: 2s ease-in-out 0s armmove forwards;
}
@keyframes armmove {
  0% {
    transform: rotate(20deg) scaleX(2) scaleY(3.55);
  }
  70% {
  transform: rotate(20deg) scaleX(7) scaleY(3.55);
  }
  100% {
  transform: rotate(20deg) scaleX(7) scaleY(3.55);
  }
}
#arm {
    transform: rotate(20deg) scaleX(2) scaleY(3.55);
}

.toggle-checkbox:checked ~ .z #armwrap { 
  animation: 2s ease-in-out 0s armwrapmove forwards;
}
@keyframes armwrapmove {
  0% {
    transform: translate(390px,-310px);
  }
  100% {
  transform: translate(310px,-350px);
  }
}
#armwrap {
    transform: translate(390px,-310px);
}

.toggle-checkbox:checked ~ .z #arm2 { 
  animation: 2s ease-in-out 0s arm2move forwards;
}
@keyframes arm2move {
  0%, 20% {
      transform: translate(171px,-345px) scaleX(4) scaleY(3.55);
  }
  100% {
      transform: translate(140px,-370px) scaleX(3) scaleY(3.55);
  }
}
#arm2 {
      transform: translate(171px,-345px) scaleX(4) scaleY(3.55);
}

#words {
  opacity: 0;
}
.z {
  width: 100%;
  max-width: 400px;
  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