HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
If the stylesheet you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<input id="trigger" class="toggle-checkbox" type="checkbox"><label for="trigger">Fire!</label>
<div class="zombiecorral">
<div class="z">
<svg id="hat" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 183 60"><path fill="#8d5e3f" d="M128.4 7.2h7.4V48H146v-2.7h36.2v11.6H164v2.7H18V57H0V45.3h36.2V48h10.6V7.2h7.4V0h74.2v7.2z"/><path class="hole" d="M95.4 31.2h1.4v8.5h-1.4v1.4H87v-1.4h-1.4v-8.5h1.4v-1.4h8.5v1.4z"/></svg>
<svg id="cowboy" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 208 394"><path fill="#91c1a3" d="M0 208.4h43v24.7H0zM168.7 208.4H208v24.7h-39.3z"/><path fill="#593000" d="M39.7 169v-10h129v10h9.5v9.8h10v9.9h9.9v9.9h9.9v9.8l-29.8.2v9.5l-19.3.2v-9.6h-10.4v62.5h-89v-62.5H49.2l-.2 9.6-18.8-.2v-9.5L0 208.4v-9.9h10v-9.8h9.8v-9.9h10v-9.9h9.9z"/><path fill="#2e1d0d" d="M99.2 336.5v57.3H34.5v-37.3h25v-20h39.7zM109 336.5h39.6v20h25v37.3H109v-57.3z"/><path fill="#433122" d="M59.5 272.5h89V338H109v-31.3H99V338H59.6v-65.6z"/><path fill="#9cd3b3" d="M4 228.2h6v-10h49.5v10H49.2v19.7h-9.5v9.9h-20v-9.9H9.9V238H4v-9.8zM148.5 218.3H198v9.9h6.9v9.9h-7v9.8h-9.7v10h-20v-10h-9.5v-19.7h-10.3v-9.9z"/><path fill="#91c1a3" d="M79.4 149.1H129v19.6H79.4z"/><path fill="#3a3a3a" d="M148.8 55.3H59.5V30.7h10v-9.9h19.7v8.7H99V39h10v-9.5h10v-8.7H138v10h10.7v24.5z"/><path fill="#9cd3b3" d="M139.6 50.5h9.2v19.7h19.8v30.1h-10.4v29.1h-9.4v9.7h-9.2v10h-20v10H89.2v-10H69.4v-10h-9.9v-9.7h-10v-29h-9.9V70.1h20V50.5h9.8v-10h70.2v10z"/><path fill="#fbeb8e" d="M109.1 60.3h30v30.1h-30zM69.4 60.3H99v30.1H69.4z"/><path fill="#758b7c" d="M89.3 119.5h29.8v10H89.3z"/><path fill="#444445" d="M69.4 70.2h10v10h-10zM119 80.3h10v10h-10z"/><path fill="#3a3a3a" d="M148.8 50.4h10v39.1h-10zM49.6 50.4h10v39.1h-10zM140.9 104.8H151v35h-3.6v4h-18.7v-32.3H79.8v32.4H61v-4h-3.5v-35.1h10v-5h73.4v5z"/><path fill="#91c1a3" d="M99.2 80h10v29.4h-10z"/><path fill="#4d4c4c" d="M148.5 263.6v9.9h-29v2h-21v2.8H87v2.1H58v-9.8h11.6v-2.2h21v-2.7h18v-2h40z"/><path d="M54.3 259.3h2.2v2.6h3.3v17.9h-3.3v30.7h-1.1V329h-5.3v-18.4h-1v-30.7h-3.4v-17.9H49v-2.6h2.2V253h3.1v6.3z"/><path fill="#2f2218" d="M44.2 284.9v-16.2h15.6v38.6H47.2v-22.4h-3z"/></svg>
</div>
<div class="z">
<svg id="hat1" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 210 70">
<path fill="#48250d" d="M21.8 54.3h-9V43.2H49v2.5h10.7V7H67V0h74.3v6.9h7.3v38.8h10.3v-2.5h36.2v11.1H186V57H21.8v-2.6z" transform="translate(1 10.4)"/><path class="hole" d="M95.4 31.2h1.4v8.5h-1.4v1.4H87v-1.4h-1.4v-8.5h1.4v-1.4h8.5v1.4z" transform="translate(13.9 10.4)"/>
</svg>
<svg fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 208 394">
<g id="Cowboy1" transform="matrix(1.00467 0 0 1 0 23)"><path id="rarm" fill="#91c1a3" d="M0 187.6h39.1v24.7H0z" transform="matrix(1.09476 0 0 1 0 0)"/><path id="shirt" fill="#976339" d="M39.7 148l108.8 40v62.4h-89v-62.5H49.2l-.2 9.6-18.8-.2v-9.6L0 187.6v-9.9h10v-9.9h9.8V158h10v-10h9.9z" transform="matrix(.99536 0 0 1 0 0)"/><path id="rboot" fill="#241717" d="M99.2 315.6V373H34.5v-37.4h25v-20h39.7z" transform="matrix(.99536 0 0 1 0 0)"/><path id="lboot" fill="#241717" d="M109 315.6h39.6v20h25V373H109v-57.4z" transform="matrix(.99536 0 0 1 0 0)"/><path id="shorts" fill="#451e15" d="M59.5 251.6h89v65.6H109V286H99v31.2H59.6v-65.6z" transform="matrix(.99536 0 0 1 0 0)"/><path id="righthand" fill="#9cd3b3" d="M0 207.3h10v-9.8h49.5v9.8H49.2v19.8h-9.5v9.8h-20v-9.8H9.9v-9.9H0v-9.9z" transform="matrix(.99536 0 0 1 0 0)"/><path id="neck" fill="#91c1a3" d="M79 128.3h49.4v19.6H79z"/><path id="hair" fill="#3a3a3a" d="M60.5 9.9h9V0H138v9.9h10.7v19.6H60.5V9.9z" transform="matrix(.99536 0 0 1 0 0)"/><path id="face" fill="#9cd3b3" d="M139.6 29.6h9.2v19.8h19.8v30h-10.4v29.2h-9.4v9.6h-9.2v10.1h-20v10H89.2v-10H69.4v-10h-9.9v-9.7h-10V79.5h-9.9V49.4h20V29.6h9.8v-9.9h70.2v10z" transform="matrix(.99536 0 0 1 0 0)"/><path id="lefteye" fill="#fbeb8e" d="M108.6 39.5h33.1v30.1h-33.1z" transform="matrix(.89986 0 0 1 10.9 0)"/><path id="righteye" fill="#fbeb8e" d="M69.1 39.5h29.4v30.1H69.1z"/><path id="mouth" fill="#758b7c" d="M88.9 98.7h29.6v9.9H88.9z"/><path id="nose" fill="#91c1a3" d="M98.7 59.2h9.9v29.4h-9.9z"/><path id="rightpupil" fill="#444445" d="M69.1 49.4H79v9.9h-9.9z"/><path id="leftpupil" fill="#444445" d="M118.5 39.5h9.9v9.9h-9.9z"/><path id="hair1" fill="#3a3a3a" d="M148.1 29.6h9.9v39.1h-9.9z"/><path id="hair2" fill="#3a3a3a" d="M49.4 29.6h9.9v39.1h-9.9z"/><g id="belt"><path fill="#4d4c4c" d="M59.2 256.7h88.6v9.9H59.2z" transform="translate(0 -10)"/></g><g><path fill="#422b12" d="M215.3 173.5v8.1h8.6v14.8h5.1V223h2.7V242h2v48.7h-7V311h-8.5v13.1h-36.7v-10.3h-10.3v-14.1h-2v-13.3h-4.5v-12.6h-3.4v-12.2h-4.9v-6.2h-8v-6h-8.9v-8.2H131v-6.7h-5.7v-7.5H114v-8.3h-8.4v-9h-8.3V201H85.8v-6.7H75v-6.2H60.3v-16.9l8.7-.2v-9.5h39.4v6.2h14.8v2.3h25.6v-5.7H191v1.6h13.3v7.6h11z" transform="matrix(.99536 0 0 1 -25.9 -27)"/></g></g>
</svg>
</div>
<div class="z">
<svg id="hat2" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 210 70">
<path fill="#433122" d="M31 70H13V55.7h36.2v3.3h10.6V12.5h7.4v-9h74.2v9h7.3v46.4h10.4v-3.3h36.2V70h-18.4v3.3H31.1V70z" transform="translate(.9 -3.4)"/><path class="hole" d="M95.4 31.2h1.4v8.5h-1.4v1.4H87v-1.4h-1.4v-8.5h1.4v-1.4h8.5v1.4z" transform="translate(13.9 10.4)"/>
</svg>
<svg fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 208 394">
<g id="Cowboy2" transform="matrix(1.00467 0 0 1 0 27)"><path id="rarm1" fill="#91c1a3" d="M0 187.6h39.1v24.7H0z" transform="matrix(1.09476 0 0 1 0 0)"/><path id="larm" fill="#91c1a3" d="M167.9 187.6H207v24.7h-39.1z"/><path id="shirt1" fill="#433122" d="M39.7 148v-9.8h129v10h9.5v9.8h10v9.9h9.9v9.8h9.9v10h-29.8v9.6l-19.3.2v-9.6h-10.4v62.5h-89v-62.5H49.2l-.2 9.6-18.8-.2v-9.6L0 187.6v-9.9h10v-9.9h9.8V158h10v-10h9.9z" transform="matrix(.99536 0 0 1 0 0)"/><path id="rboot1" fill="#2e1d0d" d="M99.2 315.6V367H34.5v-37.4h25v-14h39.7z" transform="matrix(.99536 0 0 1 0 0)"/><path id="lboot1" fill="#2e1d0d" d="M109 315.6h39.6v14h25V367H109v-51.4z" transform="matrix(.99536 0 0 1 0 0)"/><path id="shorts1" fill="#593000" d="M59.5 251.6h89v65.6H109V286H99v31.2H59.6v-65.6z" transform="matrix(.99536 0 0 1 0 0)"/><path id="righthand1" fill="#9cd3b3" d="M0 207.3h10v-9.8h49.5v9.8H49.2v19.8h-9.5v9.8h-20v-9.8H9.9v-9.9H0v-9.9z" transform="matrix(.99536 0 0 1 0 0)"/><path id="lefthand" fill="#9cd3b3" d="M148.5 197.5H198v9.9h9.9v9.8h-10v9.9h-9.7v9.9h-20V227h-9.5v-19.7h-10.3v-10z" transform="matrix(.99536 0 0 1 0 0)"/><path id="neck1" fill="#91c1a3" d="M79 128.3h49.4v19.6H79z"/><path id="hair3" fill="#3a3a3a" d="M60.5 9.9h9V0H138v9.9h10.7v19.6H60.5V9.9z" transform="matrix(.99536 0 0 1 0 0)"/><path id="face1" fill="#9cd3b3" d="M139.6 29.6h9.2v19.8h19.8v30h-10.4v29.2h-9.4v9.6h-9.2v10.1h-20v10H89.2v-10H69.4v-10h-9.9v-9.7h-10V79.5h-9.9V49.4h20V29.6h9.8v-9.9h70.2v10z" transform="matrix(.99536 0 0 1 0 0)"/><path id="lefteye1" fill="#fbeb8e" d="M108.6 39.5h33.1v30.1h-33.1z" transform="matrix(.89986 0 0 1 10.9 0)"/><path id="righteye1" fill="#fbeb8e" d="M69.1 39.5h29.4v30.1H69.1z"/><path id="mouth1" fill="#758b7c" d="M88.9 98.7h29.6v9.9H88.9z"/><path id="nose1" fill="#91c1a3" d="M98.7 59.2h9.9v29.4h-9.9z"/><path id="rightpupil1" fill="#444445" d="M69.1 49.4H79v9.9h-9.9z"/><path id="leftpupil1" fill="#444445" d="M118.5 39.5h9.9v9.9h-9.9z" transform="translate(0 20)"/><path id="hair4" fill="#3a3a3a" d="M148.1 29.6h9.9v39.1h-9.9z"/><path id="hair5" fill="#3a3a3a" d="M49.4 29.6h9.9v39.1h-9.9z"/><g id="belt1"><path fill="#4d4c4c" d="M169.5 269.8v9.9h-29v2h-21v2.7H108v2.2H79v-9.9h11.6v-2.1h21v-2.8h18v-2h40z" transform="matrix(.99536 0 0 1 -20.9 -27)"/></g><g><path d="M75.3 265.5h2.2v2.6h3.3v17.8h-3.3v30.8h-1.1V335h-5.3v-18.3h-1v-30.8h-3.4v-17.8H70v-2.6h2.2v-6.3h3.1v6.3z" transform="matrix(.99536 0 0 1 -20.9 -27)"/><path fill="#2f2218" d="M65.2 291V275h15.6v38.6H68.2V291h-3z" transform="matrix(.99536 0 0 1 -20.9 -27)"/></g></g>
</svg>
</div>
<div class="z">
<svg id="hat4" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 210 70">
<path fill="#261305" d="M20.9 57H.3V45.2h41.2V48h12.1V7.2H62V0h84.6v7.2h8.4V48h11.7v-2.7H208v11.6h-20.9v2.7H21V57z" transform="translate(.9 10.4)"/><path class="hole" d="M95.4 31.2h1.4v8.5h-1.4v1.4H87v-1.4h-1.4v-8.5h1.4v-1.4h8.5v1.4z" transform="translate(13.9 10.4)"/>
</svg>
<svg fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 208 394">
<g id="Cowboy4" transform="matrix(1.00467 0 0 1 0 20.8)"><path fill="#561c1c" d="M96.9 159.9H152v9.1H96.9z" transform="matrix(.99536 0 0 1 -20.9 -27)"/><path id="rarm2" fill="#91c1a3" d="M0 187.6h39.1v24.7H0z" transform="matrix(1.09476 0 0 1 0 0)"/><path id="larm1" fill="#91c1a3" d="M167.9 187.6H207v24.7h-39.1z"/><path id="shirt2" fill="#1b0900" d="M39.7 148v-9.8h129v10h9.5v9.8h10v9.9h9.9v9.8h9.9v10h-29.8v9.6l-19.3.2v-9.6h-10.4v62.5h-89v-62.5H49.2l-.2 9.6-18.8-.2v-9.6L0 187.6v-9.9h10v-9.9h9.8V158h10v-10h9.9z" transform="matrix(.99536 0 0 1 0 0)"/><path id="rboot2" fill="#2e1d0d" d="M99.2 315.6V373H34.5v-37.4h25v-20h39.7z" transform="matrix(.99536 0 0 1 0 0)"/><path id="lboot2" fill="#2e1d0d" d="M109 315.6h39.6v20h25V373H109v-57.4z" transform="matrix(.99536 0 0 1 0 0)"/><path id="shorts2" fill="#433122" d="M59.5 251.6h89v65.6H109V286H99v31.2H59.6v-65.6z" transform="matrix(.99536 0 0 1 0 0)"/><path id="righthand2" fill="#9cd3b3" d="M0 207.3h10v-9.8h49.5v9.8H49.2v19.8h-9.5v9.8h-20v-9.8H9.9v-9.9H0v-9.9z" transform="matrix(.99536 0 0 1 0 0)"/><path id="lefthand1" fill="#9cd3b3" d="M148.5 197.5H198v9.9h9.9v9.8h-10v9.9h-9.7v9.9h-20V227h-9.5v-19.7h-10.3v-10z" transform="matrix(.99536 0 0 1 0 0)"/><path id="neck2" fill="#91c1a3" d="M79 128.3h49.4v19.6H79z"/><path id="hair6" fill="#3a3a3a" d="M60.5 9.9h9V0H138v9.9h10.7v19.6H60.5V9.9z" transform="matrix(.99536 0 0 1 0 0)"/><path id="face2" fill="#9cd3b3" d="M139.6 29.6h9.2v19.8h19.8v30h-10.4v29.2h-9.4v9.6h-9.2v10.1h-20v10H89.2v-10H69.4v-10h-9.9v-9.7h-10V79.5h-9.9V49.4h20V29.6h9.8v-9.9h70.2v10z" transform="matrix(.99536 0 0 1 0 0)"/><path id="lefteye2" fill="#fbeb8e" d="M108.6 39.5h33.1v30.1h-33.1z" transform="matrix(.89986 0 0 1 10.9 0)"/><path id="righteye2" fill="#fbeb8e" d="M69.1 39.5h29.4v30.1H69.1z"/><path id="mouth2" fill="#758b7c" d="M88.9 98.7h29.6v9.9H88.9z"/><path id="rightpupil2" fill="#444445" d="M69.1 49.4H79v9.9h-9.9z"/><path id="leftpupil2" fill="#444445" d="M118.5 39.5h9.9v9.9h-9.9z" transform="translate(0 20)"/><path id="hair7" fill="#3a3a3a" d="M148.1 29.6h9.9v39.1h-9.9z" transform="matrix(1 0 0 1.36197 0 -10.7)"/><path id="hair8" fill="#3a3a3a" d="M49.4 29.6h9.9v39.1h-9.9z" transform="matrix(1 0 0 1.36197 0 -10.7)"/><path id="hair9" fill="#3a3a3a" d="M49.4 29.6h9.9v39.1h-9.9z" transform="matrix(2.25188 0 0 .52798 -61.8 67.3)"/><path id="hair10" fill="#3a3a3a" d="M49.4 29.6h9.9v39.1h-9.9z" transform="matrix(2.25188 0 0 .52798 24.6 67.3)"/><path id="hair11" fill="#3a3a3a" d="M49.4 29.6h9.9v39.1h-9.9z" transform="matrix(2.25188 0 0 .6673 -18.8 96.3)"/><path id="nose2" fill="#91c1a3" d="M98.7 59.2h9.9v29.4h-9.9z"/><g id="belt2"><path fill="#231810" d="M169.5 269.8v9.9h-29v2h-21v2.7H108v2.2H79v-9.9h11.6v-2.1h21v-2.8h18v-2h40z" transform="matrix(.99536 0 0 1 -20.9 -27)"/></g><g id="belt3"><path fill="#2d1f15" d="M169.5 269.8v6.8h-29v2.7h-21v2.7H108v3.4H79v-6.8h11.6v-2.8h21v-2.7h18v-3.3h40z" transform="matrix(-.97579 0 0 1.45045 225 -154.3)"/></g><g><path d="M75.3 265.5h2.2v2.6h3.3v17.8h-3.3v30.8h-1.1V335h-5.3v-18.3h-1v-30.8h-3.4v-17.8H70v-2.6h2.2v-6.3h3.1v6.3z" transform="matrix(.99536 0 0 1 -20.9 -27)"/><path fill="#2f2218" d="M65.2 291V275h15.6v38.6H68.2V291h-3z" transform="matrix(.99536 0 0 1 -20.9 -27)"/></g><g><path d="M75.3 265.5h2.2v2.6h3.3v17.8h-3.3v30.8h-1.1V335h-5.3v-18.3h-1v-30.8h-3.4v-17.8H70v-2.6h2.2v-6.3h3.1v6.3z" transform="matrix(-.99536 0 0 1 228.3 -31)"/><path fill="#2f2218" d="M65.2 291V275h15.6v38.6H68.2V291h-3z" transform="matrix(-.99536 0 0 1 228.3 -31)"/></g><g><path fill="#561c1c" d="M106.2 167h3v3.6h3.5v2.2h23.5v-2.2h3.5V167h3v-5.2H154v9h-3v5.2h-3.4v3.5h-3v3.9H142v4.5h-3.3v4.8H135v3.2h-3.5v3.5h-2.8v2.3h-8.5v-2.3h-2.8V196h-3.5v-3.2h-3.5V188H107v-4.5h-2.7v-3.9h-3v-3.5H98V171h-3v-9h11.3v5.2z" transform="matrix(.99536 0 0 1 -20.9 -27)"/></g></g>
</svg>
</div>
<div class="z">
<svg id="hat5" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 210 70">
<path fill="#261305" d="M164.2 58.3h1V70H42.8V58.3h.9v-2.6h15V17.6h7.5v-7.2h76v7.2h7.4v38h14.5v2.7z"/><path class="hole" d="M95.4 31.2h1.4v8.5h-1.4v1.4H87v-1.4h-1.4v-8.5h1.4v-1.4h8.5v1.4z" transform="translate(13.9 10.4)"/>
</svg>
<svg fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 208 394">
<g id="Cowboy5" transform="matrix(1.00467 0 0 1 0 20.8)"><path id="rarm3" fill="#91c1a3" d="M0 187.6h39.1v24.7H0z" transform="matrix(1.09476 0 0 1 0 0)"/><path id="larm2" fill="#91c1a3" d="M167.9 187.6H207v24.7h-39.1z"/><path id="shirt3" fill="#271a0e" d="M39.7 148v-9.8h129v10h9.5v9.8h10v9.9h9.9v9.8h9.9v10h-29.8v9.6l-19.3.2v-9.6h-10.4v62.5h-89v-62.5H49.2l-.2 9.6-18.8-.2v-9.6L0 187.6v-9.9h10v-9.9h9.8V158h10v-10h9.9z" transform="matrix(.99536 0 0 1 0 0)"/><path id="rboot3" fill="#1a1007" d="M99.2 315.6V373H34.5v-37.4h25v-20h39.7z" transform="matrix(.99536 0 0 1 0 0)"/><path id="lboot3" fill="#1a1007" d="M109 315.6h39.6v20h25V373H109v-57.4z" transform="matrix(.99536 0 0 1 0 0)"/><path id="shorts3" fill="#433122" d="M59.5 251.6h89v65.6H109V286H99v31.2H59.6v-65.6z" transform="matrix(.99536 0 0 1 0 0)"/><path id="righthand3" fill="#9cd3b3" d="M0 207.3h10v-9.8h49.5v9.8H49.2v19.8h-9.5v9.8h-20v-9.8H9.9v-9.9H0v-9.9z" transform="matrix(.99536 0 0 1 0 0)"/><path id="lefthand2" fill="#9cd3b3" d="M148.5 197.5H198v9.9h9.9v9.8h-10v9.9h-9.7v9.9h-20V227h-9.5v-19.7h-10.3v-10z" transform="matrix(.99536 0 0 1 0 0)"/><path id="neck3" fill="#91c1a3" d="M79 128.3h49.4v19.6H79z"/><path id="hair12" fill="#3a3a3a" d="M60.5 9.9h9V0H138v9.9h10.7v19.6H60.5V9.9z" transform="matrix(.99536 0 0 1 0 0)"/><path id="face3" fill="#9cd3b3" d="M139.6 29.6h9.2v19.8h19.8v30h-10.4v29.2h-9.4v9.6h-9.2v10.1h-20v10H89.2v-10H69.4v-10h-9.9v-9.7h-10V79.5h-9.9V49.4h20V29.6h9.8v-9.9h70.2v10z" transform="matrix(.99536 0 0 1 0 0)"/><path id="lefteye3" fill="#fbeb8e" d="M108.6 39.5h33.1v30.1h-33.1z" transform="matrix(.89986 0 0 1 10.9 0)"/><path id="righteye3" fill="#fbeb8e" d="M69.1 39.5h29.4v30.1H69.1z"/><path id="mouth3" fill="#758b7c" d="M88.9 98.7h29.6v9.9H88.9z"/><path id="rightpupil3" fill="#444445" d="M69.1 49.4H79v9.9h-9.9z"/><path id="leftpupil3" fill="#444445" d="M118.5 39.5h9.9v9.9h-9.9z" transform="translate(0 20)"/><path id="hair13" fill="#3a3a3a" d="M148.1 29.6h9.9v39.1h-9.9z" transform="matrix(1 0 0 1.36197 0 -10.7)"/><path id="hair14" fill="#3a3a3a" d="M49.4 29.6h9.9v39.1h-9.9z" transform="matrix(1 0 0 1.36197 0 -10.7)"/><path id="hair15" fill="#3a3a3a" d="M49.4 29.6h9.9v39.1h-9.9z" transform="matrix(6.34026 0 0 .33365 -240.8 73)"/><path fill="#3a3a3a" d="M90.4 106h8.7v8.7h-8.7z" transform="matrix(.99536 0 0 1 -20 -25.3)"/><path fill="#3a3a3a" d="M90.4 106h8.7v8.7h-8.7z" transform="matrix(.99536 0 0 1 38.6 -25.3)"/><path id="nose3" fill="#91c1a3" d="M98.7 59.2h9.9v29.4h-9.9z"/><g><path fill="#c1a999" d="M109.5 186.7h-3.2V175h37.4v8.4h-1.4v8.4h-2v3h-2v8.3h-4v5.1H131v4h-2.8v5.4H123v-5.3h-2.2v-4.1h-2V205h-2.9v-3.8h-3v-6.4h-3.4v-8z" transform="matrix(.99536 0 0 1 -20.9 -27.1)"/></g><g><path fill="#171835" d="M113 174.8h24v8.6h-3.4v4h-3.1v3.5h-2.3v2.1h.5v4.4h.8v3h1v11.7h-2.3v5.4H123V212h-2.2v-4h-1.2v-7.7h.9v-3h.7V193h.6V191h-2.3v-3.5h-3v-4H113v-8.6z" transform="matrix(.99536 0 0 1 -20.9 -27)"/></g><g><path fill="#342114" d="M80.5 265h89.1v13.6H80.5z" transform="matrix(.99536 0 0 .72213 -20.9 50.4)"/></g></g>
</svg>
</div>
<div class="z">
<svg id="tophat" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="1.5" clip-rule="evenodd" viewBox="15 -50 165 170">
<path d="M170.3 63.3h20.1v9.6H59v-9.6h20.1V-10h91.2v73.3z" transform="matrix(-.89172 0 0 .89172 207.7 -24)"/>
<path fill="#c95656" d="M776.8 330.2h180.5v19.4H776.8z" transform="matrix(-.45056 0 0 .44383 487.2 -123)"/><path class="hole" d="M95.4 31.2h1.4v8.5h-1.4v1.4H87v-1.4h-1.4v-8.5h1.4v-1.4h8.5v1.4z" transform="translate(13.9 10.4)"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="1.5" clip-rule="evenodd" viewBox="8 90 197 500">
<g transform="matrix(-1.12143 0 0 1.12143 215.3 127)">
<path fill="#493222" d="M128 21.6v-9H65v9h-9v20.7h81V21.6h-9z"/>
<path fill="#222" d="M34.6 299h18.2v-12.8h36v1h.3v45.4H34.6v-33.5zM153.2 299.1H135v-22.6H99v10.8h-.3v45.3h54.5v-33.5z"/>
<path fill="#9cd3b3" fill-rule="nonzero" d="M143.2 236.4h-11.5v18.2h3v9h9v9h18.2v-9h9v-9h9v-18.2h-9v-9h-27.7v9z"/>
<path d="M64 136.7v-7.6h-8.4v-8.7h-6.7V114h-8.4v-8.7h-36V132h9.1v9h9.1v9.1H31v9.5H41v9h9.6v13.8l-.8 43.6H53v12.7H53V293h35.9l1.4-32.9H97l1.7 32.9h36v-54.3h-.2v-12.2h3.7v-44.3l5.4.2v8.9h9v36h9.1v9h9v9.2H189V164h-9v-9h-9.1v-9.2h-9v-9l-45.4-.2H64z"/>
<path fill="#4d4c4c" fill-rule="nonzero" d="M53 234h81.8v9H53z"/>
<path fill="#fff" d="M128 143H64v92.6h64z"/>
<path fill="#91c1a3" fill-rule="nonzero" d="M72.5 122.3H119v25.2H72.5z"/>
<path fill="#9cd3b3" fill-rule="nonzero" d="M137 57.6h18v27.5h-9.5v26.5h-8.6v9h-8.3v9h-18.2v9H82.9v-9H65v-9.2h-9v-8.8h-9V85.1h-9V57.6h18v-18h9v-9h63.7v9h8.3v18z"/>
<path id="bowtie" fill="#d84444" d="M115.2 187h20.3v-5H147v20.8h-11.6v-5h-20.3v5h-11.7V182h11.7v4.9z" transform="matrix(-.89172 0 0 .89172 207.7 -24)"/>
<path fill-opacity=".5" d="M100.8 142.7H92v9.7h8.8z"/>
<path id="hair" fill="#493222" d="M844 534h-40.5V512h20V491h.6v-18.8h40.6v19.6h20.8v-19.6H926V491h.6V512h20V534h-40.5v-21.1h-.5v.8h-60.8v-.8h-.8v21z" transform="matrix(-.44383 0 0 .44383 484.9 -125)"/>
<path fill="#758b7c" fill-rule="nonzero" d="M91.8 102.6h9.1v9h-9.1z"/>
<path fill="#91c1a3" fill-rule="nonzero" d="M92 66.6h9v26.8h-9z"/>
<path fill="#493222" d="M47 39.6v38.5l9 .2V39.6h-9zM137 39.6V76h9V39.6h-9z"/>
<path fill="#fbeb8e" fill-rule="nonzero" d="M131.1 76.1H101V48.6h30.2v27.5zM65 48.6h27v27h-.2v.5H65V48.6z"/>
<path fill="#444445" fill-rule="nonzero" d="M83.4 57.9h9v9h-9zM101.1 67h9V76h-9z"/>
<path fill="#333354" d="M100.4 167.1h-8.8v9h8.8zM100.4 192.4h-8.8v8.9h8.8zM100.4 218.2h-8.8v8.8h8.8z"/>
<g id="rabbit">
<path fill="#ecdfd6" d="M121.228 146.457H91.042v-12.612h.397v-.71h.365v-.712h.463v-.877h1.011v-6.928h1.923v-2.608h21.839v2.608h1.923v6.928h1.041v.877h.462v.712h.365v.71h.397v12.612z" transform="matrix(-.79931 0 0 .79931 183.9835 -94.3642)"/>
<path fill="#f2e9e3" d="M21.162 9.355h1.113v2h1.135v21.69h-7.25v-21.69h1.135v-2h1.113v-2h2.754v2z" transform="matrix(-.79931 0 0 .79931 119.2064 -38.1294)"/>
<path fill="#f2e9e3" d="M21.162 9.355h1.113v2h1.135v21.69h-7.25v-21.69h1.135v-2h1.113v-2h2.754v2z" transform="matrix(-.79931 0 0 .79931 110.3556 -38.1294)"/>
<path fill="#cf9999" d="M20.369 16.921h.793v12.982h-2.557V16.921h.792v-.767h.972v.767z" transform="matrix(-.79931 0 0 .79931 119.2849 -38.0509)"/>
<path fill="#cf9999" d="M20.369 16.921h.793v12.982h-2.557V16.921h.792v-.767h.972v.767z" transform="matrix(-.79931 0 0 .79931 110.4341 -38.0509)"/>
<path fill="#ede1d9" d="M36.483 31.332h1.983v18.341h-1.983v1.983h-18.34v-1.983H16.16V31.332h1.983v-1.983h18.34v1.983z" transform="matrix(-.79931 0 0 .79931 120.805 -38.1294)"/>
<path fill="#3c2e2e" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(-.79931 0 0 .79931 120.6353 -38.9287)"/>
<path fill="#3c2e2e" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(0 .79931 .79931 0 63.2289 -23.2183)"/>
<path fill="#c3b6b6" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(0 -.79931 .26723 0 84.686 18.7978)"/>
<path fill="#c3b6b6" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(0 -.79931 .5189 0 72.7774 18.0824)"/>
<path fill="#f5eee9" d="M11.919 60.086h.849V75.7H8.185V60.086h.849v-1h2.885v1z" transform="matrix(-.7989 -.02536 -.02536 .7989 122.999 -37.5696)"/>
<path fill="#f5eee9" d="M11.919 60.086h.849V75.7H8.185V60.086h.849v-1h2.885v1z" transform="matrix(.7989 -.02536 .02536 .7989 75.298 -37.5696)"/>
<path fill="#f5eee9" d="M11.919 60.086h.849V75.7H8.185V60.086h.849v-1h2.885v1z" transform="rotate(-90 21.893 -6.494) scale(.79931)"/>
<path fill="#f5eee9" d="M11.919 60.086h.849V75.7H8.185V60.086h.849v-1h2.885v1z" transform="matrix(-.79931 0 0 -.69182 114.0946 63.5773)"/>
<path fill="#cf9999" d="M8.759 61.97h.654v1.425h-.654z" transform="matrix(-.7989 -.02536 -.02536 .7989 122.999 -37.5696)"/>
<path fill="#cf9999" d="M8.759 61.97h.654v1.425h-.654z" transform="matrix(-2.73909 -.08694 -.03403 1.07214 139.9434 -52.2909)"/>
<path fill="#cf9999" d="M8.759 61.97h.654v1.425h-.654z" transform="matrix(2.73909 -.08694 .03276 1.03225 58.447 -49.819)"/>
<path fill="#cf9999" d="M8.759 61.97h.654v1.425h-.654z" transform="matrix(0 -2.74047 1.03277 0 15.6093 31.8528)"/>
<path fill="#cf9999" d="M8.759 61.97h.654v1.425h-.654z" transform="matrix(.7989 -.02536 .02536 .7989 75.298 -37.5696)"/>
<path fill="#cf9999" d="M8.759 61.97h.654v1.425h-.654z" transform="rotate(-90 21.893 -6.494) scale(.79931)"/>
<path fill="#cf9999" d="M8.759 61.97h.654v1.425h-.654z" transform="matrix(-.7989 -.02536 -.02536 .7989 122.2824 -38.785)"/>
<path fill="#cf9999" d="M8.759 61.97h.654v1.425h-.654z" transform="matrix(.7989 -.02536 .02536 .7989 76.0145 -38.785)"/>
<path fill="#cf9999" d="M8.759 61.97h.654v1.425h-.654z" transform="rotate(-90 20.9198 -6.2755) scale(.79931)"/>
<path fill="#cf9999" d="M8.759 61.97h.654v1.425h-.654z" transform="matrix(-.7989 -.02536 -.02536 .7989 121.528 -38.8089)"/>
<path fill="#cf9999" d="M8.759 61.97h.654v1.425h-.654z" transform="rotate(-1.8151 -1184.7539 -2438.6265) scale(.79931)"/>
<path fill="#cf9999" d="M8.759 61.97h.654v1.425h-.654z" transform="rotate(-90 20.5424 -6.6529) scale(.79931)"/>
<path fill="#cf9999" d="M8.759 61.97h.654v1.425h-.654z" transform="matrix(-.7989 -.02536 -.02536 .7989 120.736 -37.6415)"/>
<path fill="#cf9999" d="M8.759 61.97h.654v1.425h-.654z" transform="matrix(.7989 -.02536 .02536 .7989 77.561 -37.6415)"/>
<path fill="#cf9999" d="M8.759 61.97h.654v1.425h-.654z" transform="rotate(-90 20.761 -7.6261) scale(.79931)"/>
<path fill="#c3b6b6" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(0 .79931 -.26723 0 113.2299 -25.8514)"/>
<path fill="#c3b6b6" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(0 -.79931 -.26723 0 113.315 18.7978)"/>
<path fill="#c3b6b6" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(0 -.79931 -.52695 0 125.396 18.0824)"/>
<path fill="#c3b6b6" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(0 .79931 .26723 0 84.601 -25.8514)"/>
<path fill="#c3b6b6" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(0 -.79931 .26723 0 83.539 19.1091)"/>
<path fill="#c3b6b6" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(0 .79931 -.26723 0 114.377 -26.1627)"/>
<path fill="#c3b6b6" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(0 -.79931 -.26723 0 114.462 19.1091)"/>
<path fill="#c3b6b6" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(0 .79931 .26723 0 83.4538 -26.1627)"/>
<path fill="#c3b6b6" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(0 -.79931 .26723 0 82.3941 19.3978)"/>
<path fill="#c3b6b6" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(0 -.79931 .26723 0 82.2913 18.3904)"/>
<path fill="#c3b6b6" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(0 .79931 -.26723 0 115.5219 -26.4514)"/>
<path fill="#c3b6b6" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(0 -.79931 -.26723 0 115.607 19.3978)"/>
<path fill="#c3b6b6" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(0 -.79931 -.26723 0 115.5042 18.3904)"/>
<path fill="#c3b6b6" d="M26.88 42.528h.441v4.383h-.441z" transform="matrix(0 .79931 .26723 0 82.309 -26.4514)"/>
<path fill="#fff" stroke="#cf9999" stroke-width=".0559517" d="M103.6894-9.8873h-.5692v2.0438h.5692v.5699h2.0438v-.57h.5699v-2.0437h-.57v-.57h-2.0437v.57zM92.4471-9.8873h-.569v2.0438h.569v.5699h2.0439v-.57h.5699v-2.0437h-.57v-.57h-2.0438v.57z"/>
<path fill="#463e9a" d="M21.064 35.333h.712v2.557h-.712v.713h-2.557v-.713h-.713v-2.557h.713v-.713h2.557v.713z" transform="matrix(-.45603 0 0 .45603 113.617 -25.5614)"/>
<path fill="#463e9a" d="M21.064 35.333h.712v2.557h-.712v.713h-2.557v-.713h-.713v-2.557h.713v-.713h2.557v.713z" transform="matrix(-.45603 0 0 .45603 102.3748 -25.5614)"/>
<path fill="#cf9999" d="M26.329 42.022h-.919v-1.984h3.823v1.984h-.919v.919h-1.985v-.919z" transform="matrix(-.79931 0 0 .79931 120.805 -38.1294)"/>
<path fill="#c9a48b" d="M66.611 40.15h4.716v30.882h-4.716z" transform="matrix(-.4012 .06517 .1099 .67648 100.0296 -36.302)"/>
<path fill="#fff" d="M47.332 23.189h42.163v28.467H47.332z" transform="matrix(-.54128 .08793 .06831 .42051 111.0158 -26.5521)"/>
<path fill-rule="nonzero" d="M1.375-1.25v.125H1.25v1h.125V0h-.5v-.125H1v-.5H.375v.5H.5V0H0v-.125h.125v-1H0v-.125h.5v.125H.375v.375H1v-.375H.875v-.125h.5z" transform="matrix(-3.1286 .50823 .52898 3.25633 85.5008 -5.2452)"/>
<path fill-rule="nonzero" d="M1.125-1.25v.375H1V-1H.875v-.125h-.5v.375H.75v.125H.375v.5h.5V-.25H1v-.125h.125V0H0v-.125h.125v-1H0v-.125h1.125z" transform="matrix(-3.1286 .50823 .52898 3.25633 80.8079 -4.4828)"/>
<path fill-rule="nonzero" d="M1-.25v-.125h.125V0H0v-.125h.125v-1H0v-.125h.5v.125H.375v1h.5V-.25H1z" transform="matrix(-3.1286 .50823 .52898 3.25633 76.8971 -3.8476)"/>
<path fill-rule="nonzero" d="M.375-1.125v.499h.25V-.75H.75V-1H.625v-.125h-.25zm.5 0V-1H1v.25H.875v.125H.75v.124H.375v.376H.5V0H0v-.125h.125v-1H0v-.125h.75v.125h.125z" transform="matrix(-3.1286 .50823 .52898 3.25633 72.9864 -3.2123)"/>
<path fill-rule="nonzero" d="M.5 0H.25v-.25H.5V0zm0-1.25v.875H.25v-.875H.5z" transform="matrix(-3.1286 .50823 .52898 3.25633 69.4667 -2.6405)"/>
</g>
<g id="hand">
<path id="lhand" fill="#9cd3b3" fill-rule="nonzero" d="M1731 799.1h-46.8v-16.3h-14.4v-65.3h20.4v-21h61.2v21h20.4v42h-20.4v19.2H1731v20.4z" transform="matrix(.4439 0 0 .4439 -725.1 -291)"/>
<path id="top" d="M234.2 271.9l.2 30.4h-21.9v-10l-10 .3V282l-9.9.1v-10.3h41.6z" transform="matrix(-.78275 0 0 -.89172 183.2 314.4)"/>
</g>
<g id="stretch">
<path d="M234 208.6l.2 70.3h-41.6v-70.3h41.3z" transform="matrix(-.78519 0 0 -.94906 183.7 330.4)"/>
</g>
</g>
</svg>
</div>
</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>
.toggle-checkbox:checked ~ .zombiecorral #hat {
animation: 0.25s linear 0.04s shootoffhat forwards;
}
.toggle-checkbox:checked ~ .zombiecorral #hat1 {
animation: 0.25s linear 0.24s shootoffhat forwards;
}
.toggle-checkbox:checked ~ .zombiecorral #hat2 {
animation: 0.25s linear 0.44s shootoffhat forwards;
}
.toggle-checkbox:checked ~ .zombiecorral #hat4 {
animation: 0.25s linear 0.64s shootoffhat forwards;
}
.toggle-checkbox:checked ~ .zombiecorral #hat5 {
animation: 0.25s linear 0.84s shootoffhat forwards;
}
.toggle-checkbox:checked ~ .zombiecorral #tophat {
animation: 0.25s linear 1.04s shootoffhat forwards;
}
.toggle-checkbox:checked ~ .zombiecorral #hat .hole {
animation: 0.01s linear 0s appear forwards;
}
.toggle-checkbox:checked ~ .zombiecorral #hat1 .hole {
animation: 0.01s linear 0.2s appear forwards;
}
.toggle-checkbox:checked ~ .zombiecorral #hat2 .hole {
animation: 0.01s linear 0.4s appear forwards;
}
.toggle-checkbox:checked ~ .zombiecorral #hat4 .hole {
animation: 0.01s linear 0.6s appear forwards;
}
.toggle-checkbox:checked ~ .zombiecorral #hat5 .hole {
animation: 0.01s linear 0.8s appear forwards;
}
.toggle-checkbox:checked ~ .zombiecorral #tophat .hole {
animation: 0.01s linear 1s appear forwards;
}
@keyframes appear {
from {opacity: 0;}
to {opacity: 1;}
}
.hole {
opacity: 0;
}
@keyframes shootoffhat {
0% {
transform: rotateY(0) rotateX(0) translateY(0);
}
100% {
transform: rotate(180deg) translateY(100vh);
}
}
.zombiecorral{
display: flex;
justify-content: center;
align-content: flex-end;
margin-top: 2em;
}
#hat, #hat1, #hat2, #hat4, #hat5, #tophat {
position: absolute;
z-index: 10;
transform: rotate(0) translateY(0);
transform-origin: center 50px;
top: -2%
}
#tophat {
top: -13%
}
#tophat + svg {
margin-top: -18%;
}
.z {
width: 200px;
margin: 1em;
position: relative;
}
body {
background-color: tan;
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;
}
Also see: Tab Triggers