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">Bash!</label>
<div class="z"><svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 250 400"><g id="caveman" transform="matrix(1.00467 0 0 1 21 27)"><path id="rarm" fill="#91c1a3" d="M150 165h30v10h9v10h10v10h10v10h10v34h-29v-15h-10v-9h-10v148h17l8 5v32h-65v-87h-10v87H55v-34l6-3h20V215H70v9h-6v15H31v-34h10v-10h10v-10h10v-10h10v-10h29v-10h50v10z" transform="matrix(.99536 0 0 1 -21 -27)"/><path fill="#aacfb8" d="M205 341v2h2v5h-6v-2h-1v-1h-2v-4h7z" transform="matrix(.99536 0 0 1 -33 -6)"/><path fill="#aacfb8" d="M205 341v2h2v5h-6v-2h-1v-1h-2v-4h7z" transform="matrix(-.99536 0 0 1 240 -6)"/><path id="hair" fill="#3a3a3a" d="M60 10h9V0h69v10h11v19H60V10z" transform="scale(.99536 1)"/><path id="face" fill="#9cd3b3" d="M140 30h9v19h20v30h-11v30h-9v9h-9v10h-20v10H89v-10H69v-10h-9v-9H50V79H40V49h20V30h9V20h71v10z" transform="scale(.99536 1)"/><path id="lefteye" fill="#fbeb8e" d="M109 40h33v30h-33z" transform="matrix(.89986 0 0 1 11 0)"/><path id="righteye" fill="#fbeb8e" d="M69 40h29v30H69z"/><path id="mouth" fill="#758b7c" d="M89 99h30v10H89z"/><path id="nose" fill="#91c1a3" d="M99 59h10v29H99z"/><path id="rightpupil" fill="#444445" d="M69 49h10v10H69z"/><path id="leftpupil" fill="#444445" d="M119 40h10v10h-10z"/><path id="hair1" fill="#3a3a3a" d="M148 30h10v39h-10z"/><path id="hair2" fill="#3a3a3a" d="M49 30h10v39H49z"/><path fill="#976339" d="M215 173v9h9v14h5v27h3v19h2v49h-7v20h-9v9h-53v-6h-6v-14h-7v-14h-4v-12h-4v-12h-5v-9h-8v-12h-7v-6l-10-1v-8h-8v-9h-9v-9H86v-6H75v-7h-7v-22h40v-2h15v-4h17v-3h51v2h13v7h11z" transform="matrix(0 1 .681 0 -63 68)"/><clipPath id="_clip1"><path d="M56 283h5v9h10v5h18v3h13v2h33v-7h14v-9h6v-53h-4v-6h-9v-7h-10v-4h-8v-4h-8v-5h-7v-7h-7v-8h-5v-10h-6v-8h-6v-9h-6v-11h-4v-11h-5v-7H55v40h-1v15h-3v17h-2v51h1v13h6v11z"/></clipPath><g fill="#422b10" clip-path="url(#_clip1)"><path d="M600 338h75v37h38v38h37v187H450v-37h-75v-38h-37v-37h-38V375h38v-37h75v-38h187v38z" transform="matrix(-.19914 0 0 .20007 153 159)"/><path d="M136 273h4v12h-4v5h-18v-5h-4v-12h4v-4h18v4z" transform="matrix(0 1 -.99536 0 387 132)"/><path d="M146 273h4v12h-4v5h-28v-5h-4v-12h4v-4h28v4z" transform="matrix(.99536 0 0 1 -41 20)"/><path d="M136 273h4v12h-4v5h-18v-5h-4v-12h4v-4h18v4z" transform="matrix(0 1 -.99536 0 330 60)"/><path d="M136 273h4v12h-4v5h-18v-5h-4v-12h4v-4h18v4z" transform="matrix(0 1 -.99536 0 335 8)"/><path d="M600 338h75v37h38v38h37v187H450v-37h-75v-38h-37v-37h-38V375h38v-37h75v-38h187v38z" transform="matrix(0 .14262 .14195 0 85 223)"/><path d="M600 338h75v37h38v38h37v187H450v-37h-75v-38h-37v-37h-38V375h38v-37h75v-38h187v38z" transform="matrix(0 -.14262 .14195 0 30 262)"/><path d="M600 338h75v37h38v38h37v187H450v-37h-75v-38h-37v-37h-38V375h38v-37h75v-38h187v38z" transform="matrix(0 -.14262 .14195 0 80 291)"/></g><path id="righthand" fill="#9cd3b3" d="M6 207h4v-10h50v10H49v20h-9v10H20v-10H10v-10H6v-10z" transform="scale(.99536 1)"/><g id="lefthand"><path fill="#9cd3b3" d="M148 197h50v10h6v10h-6v10h-10v10h-20v-10h-9v-20h-11v-10z" transform="scale(.99536 1)"/></g></g></svg></div>
<div class="h">
  <svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 90 375">
    <g><path fill="#a4826a" d="M35 259.6v78H18l-8 5.4v32h64.7V258L35 259.6z"/><path fill="#b39c8e" d="M11.4 337.6v1.4H10v5.3h5.9v-1.4h1.3v-1.4h1.4v-3.9h-7.2z"/><path fill="#c69c7f" d="M67.5 259.6v-96.4H63v-6H43.8v6H39v87.5h.8v9H24.4v9.8h10.3v30.7h9.5v10h17v-10H71v-21.9h.4v-9H71v-9.7h-3.5z"/><path fill="#a4826a" fill-rule="nonzero" d="M71.3 112l-37.6.2.2 29.7 37.6-.3z"/><path fill="#a4826a" fill-rule="nonzero" d="M15.7 237.4l-.5-91 9.4-.1-.1-9.6 47-.3v9.6h9.4l.5 91-65.7.4z"/><path fill="#3d5070" fill-rule="nonzero" d="M81.5 261l-56.3.4v-9.6h-9.4l-.1-14.4 65.7-.3.1 24z"/><path fill="#c69c7f" fill-rule="nonzero" d="M14.7 60l-.3-38.4 60.4-5.5-3.5 91.5v9.6l-18.8.1.1 9.6-37.5.2-.2-19.2h18.8v-9.7l-18.8.2v-9.6H5.3L5.3 60h9.4z"/><path fill="#fff" fill-rule="nonzero" d="M14.6 40.8l18.7-.1.2 28.8H14.7l-.1-28.7z"/>
        <path id="eye" fill="#444445" d="M14.6 50.6H24v9.6h-9.3z"/>
        <path fill="#18100b" fill-rule="nonzero" d="M70.6 2.1v6.2h9.5v9.6l9.4-.1.5 84-9.4.2v6.5l-16 .1-.2-39.3L71 69V47.2h-9.5v-9.5H52v19h-9.3L42.7 31h-9.4l-.4-9.4-25 .2-.1-9.6h7.6l.1-5.3h8.2V2.3l47-.3z"/><path fill="#617594" fill-rule="nonzero" d="M81.4 232.3l-65.7.3v9.6l65.7-.4z"/><path fill="#976339" d="M85.7 261.3H81v8.7H75v5h-8.2v4.7H28.7v-7h-9v-8.5h-6v-53.6h2v-5.9h4.7v-7.2h5V181h3.5l.2-16h4.7v-13.4h4.1v-8.3h4v-8.5l31.3.1-.2 19.5h8.7v14.8h3.5l.6 92.1z"/><path fill="#422b10" d="M24.6 243.3v4.3h12.2v-4.3H41v-18.2h-4.3v-4.3H24.6v4.3h-4.3v18.2h4.3zM85.2 194.3l.4 60h-9.4v-7.5h-15v-7.5h-7.6v-7.5h-7.5v-22.5h7.5v-7.5h15v-7.5h16.6z"/><path fill="#422b10" d="M24.6 243.3v4.3h12.2v-4.3H41v-18.2h-4.3v-4.3H24.6v4.3h-4.3v18.2h4.3zM30.8 279.7V268H35v-4.3h28.2v4.3h4.3v7h-.8v4.6h-36zM77.2 154.4h4.4v14.8h3.5v6.6h-3.6v-4.3h-4.3v-17zM51.5 134.9v.3h5.3v5.3h5.4v10.7h5.3V178h-5.3v10.7h-5.4v5.4h-16v-5.4h-5.4v-5.3h-5.3v-10.7h-1.2V165h4.8v-13.4h4.1v-8.3h4v-8.5h9.7zM17.5 204.7v3h-2v-3z"/><path fill="#a4826a" d="M69.5 191.8v10.7h-5.3v5.4h-5.4v5.3H41.1V208l-4.3-.1v-21.3h-2.7v-13h3.3v-13.8h5.4v-5.3H48V149h16v5.4h5.4V165H75v26.7h-5.4z"/><path fill="#c69c7f" d="M67.5 259.6v-96.4H63v-6H43.8v6H39v87.5h.8v9H24.4v9.8h10.3v30.7h9.5v10h17v-10H71v-21.9h.4v-9H71v-9.7h-3.5z"/>
    </g>
      
    </svg>
  <div class="club">
    <svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 150 230"><path fill="#a4826a" d="M25.9 228h21.6v-3.5h96.4v-4.7h6v-19h-6V197l-96.4-.2v-15.4h-9.9v10.2H25.9V228z"/><path fill="#ab6f2a" d="M13.4 5V0h28.8v5.2h4v11.4h5.6v74.7h-5.5v38.5h-5v38.5h-4v60.4H21.7l-.3-28.9h-2.5l-.1-13.5h-5v-18.5h-5v-36H2.3V79.6H0V5h13.4z"/><path fill="#c69c7f" d="M13.2 191.6h17.5v9.6h9v17h-9v9.8H13.2v-36.4z"/></svg>
  </div></div>
<div class="trex"><svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 699 682"><path fill="#263f22" d="M84.03 655.46v7.4H63.39v-3.07H42.23v11.3L0 671.2l.13-9.8h14.4l.01-13.23H34v-12.17h24.64v-9.17h25.08l.31 28.62z"/><path fill="#446b3e" d="M474.6.74L542.33 0v8.63h22.8V20.3h20.99v14.76h15.8v15.03h16.2v18.14h12.8v19.25h11.22v23.2h12.8v20.35h11.2v23.2h12.8v71.73h13.04V342.9h-13.9v14.77h-15.8v15.03h-16.21v18.14h-12.8v19.24h-11.21v23.2h-14.8v20.36h-13.21v23.2h-14.8v82.63l8.79.07-.14 9.84h19.84v7.9h15.17v6.93h13.46v7.92h14.17v6.93h13.39v7.9h12.34V617h10.36v9.77h7.12v12.97h5.1l-.1 14.75h-4.74l.23 14.7-6.71-.05.23 11.23-484.06-.72v-7.35h-20.64v-7.38l-22.01-1.64v7.94H150.8v9.82H87.68v-9.82H77.43v-7.94h-10.7v-53.22h10.7v-7.93h10.25v-9.83h63.12v9.83h6.32v-10h32.12v-9.45h38.71v-10.8h33.97v-9.44h38.7v-10.8h63.5v-10.6h-20.99v-14.77h-15.8v-15.03h-16.2v-18.14h-12.8v-19.24H287.1v-23.2h-12.8V430.3H263.1V407.1h-12.8v-71.74h-13.03v-109.4h13.03v-71.73h12.8v-23.2h11.2v-20.36h12.81V87.48h11.21V68.23h12.8V50.1h16.21V35.06h15.8V20.3h20.99V8.64l22.8-.01V0l87.68.74z"/></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

              
                .toggle-checkbox:checked ~ .h .club { 
  animation: 5s linear 0s bash forwards;
}
.toggle-checkbox:checked ~ .z, .toggle-checkbox:checked ~ .h { 
  animation: 5s linear 0s pound forwards;
}

@keyframes bash {
  0% {
      transform: scaleY(1) rotate(-90deg);
  }
  50%, 55%, 100% {
      transform: scaleY(1) rotate(110deg);
  }
}
@keyframes pound {
  0%, 55% {
    transform: scaleY(1);
  }
  55.5%, 100% {
    transform: scaleY(0.1);
  }
}
.z {
  width: 15vw;
  position: absolute;
  top: 10vh;
  left: 35vw;
  z-index: 50;
  transform-origin: center bottom;
}
.trex {
  width: 50vw;
  position: absolute;
  left: 20vw;
  top: -50vw;
/*     transform: translateY( calc( 10vh + 24.5vw ) ); */
  z-index: 100;
}
.toggle-checkbox:checked ~ .trex { 
  animation: 5s linear 0s smash forwards;
}
@keyframes smash {
  0%, 53% {
    transform: translateY( 0 );
  }
  55%, 100% {
    transform: translateY( calc( 10vh + 25vw ) );
  }
}
.h {
  width: 6vw;
  position: absolute;
  top: 8vh;
  right: 40vw;
  transform-origin: center bottom;
}
.h > svg {
  position: relative;
  z-index: 100;
}
.club {
  width: 12vw;
  position: absolute;
  top: -6vw;
  z-index: 1;
  left: -8vw;
  transform-origin: 95% 88%;
  transform: rotate(-90deg);
}
#eye {
  transform: translateY(0.25vw);
}
body {
  background-color: blanchedalmond;
  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: 140px;
  height: 30px;
  text-align: center;
  font-weight: bold;
  display: block;
  border-radius: 7px;
  box-shadow: 3px 3px 0 #660000;
  cursor: pointer;
}
              
            
!

JS

              
                
              
            
!
999px

Console