Pen Settings



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


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


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.


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.


                <input id="trigger" class="toggle-checkbox" type="checkbox"><label for="trigger">Action!</label>

<!-- Zombie pops up and blinks. goes down -->
<svg id="zombie" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 277 330">
  <path fill="#91c1a3" fill-rule="nonzero" d="M0 250h52v33H0zM276 250h-52v33h52z"/>
  <path fill="#886546" d="M65 250v13H40v-13H0v-13h13v-13h13v-13h13v-14h14v-13h171v13h13v14h13v13h13v13h13v13h-39v13h-26v-13l-14 1v76H79v-76l-11-1h-3z"/>
  <path fill="#4d4c4c" d="M79 322h118v13H79z"/>
  <path fill="#9cd3b3" fill-rule="nonzero" d="M13 263h66v13H65v27H53v13H26v-13H13v-13H0v-14h13v-13zM197 263h66v13h13v14h-13v13h-13v13h-27v-13h-12v-27h-14v-13z"/>
  <path fill="#91c1a3" fill-rule="nonzero" d="M105 171h66v26h-66z"/>
  <path fill="#3a3a3a" fill-rule="nonzero" d="M183 13h14v26H79V13h12V0h92v13z"/>
  <path fill="#9cd3b3" fill-rule="nonzero" d="M185 39h12v27h27v40h-14v39h-13v13h-12v13h-26v13h-41v-13H92v-13H79v-13H66v-39H53V66h26V39h13V26h93v13z"/>
  <g id="lefteye">
    <path fill="#fbeb8e" fill-rule="nonzero" d="M99 36h9v9h-9z" transform="matrix(4.90707 0 0 4.46262 -341 -108)"/>
    <path fill="#444445" fill-rule="nonzero" d="M108 36h9v9h-9z" transform="scale(1.46262)"/>
  <g id="righteye">
    <path fill="#fbeb8e" fill-rule="nonzero" d="M63 36h9v9h-9z" transform="matrix(4.35151 0 0 4.46262 -182 -108)"/>
    <path fill="#444445" fill-rule="nonzero" d="M63 45h9v9h-9z" transform="scale(1.46262)"/>
  <path fill="#758b7c" fill-rule="nonzero" d="M118 132h40v13h-40z"/>
  <path fill="#91c1a3" fill-rule="nonzero" d="M132 79h13v39h-13z"/>
  <path fill="#3a3a3a" fill-rule="nonzero" d="M197 39h14v53h-14zM66 39h13v53H66z"/>

<div class="logo"><a href="" target="_blank"><img src="" alt="Getting Braaains should be fun"></a></div>


                .toggle-checkbox:checked ~ #zombie { 
  animation: 4s ease-in-out 0s popup alternate 2;
.toggle-checkbox:checked ~ #zombie #lefteye, .toggle-checkbox:checked ~ #zombie #righteye { 
  animation: 0.125s linear 3.5s blink 1;

@keyframes popup {
  0% {
    transform: translateY(0);
  50% {
    transform: translateY(-500px);
  100% {
    transform: translateY(-500px);
@keyframes blink {
  0% {
    transform: scaleY(1);
  40% {
    transform: scaleY(0.0625);
  100%  {
    transform: scaleY(1.1);
#lefteye, #righteye {
  transform-origin: 25% 25%;
#zombie {
  width: 100%;
  max-width: 500px;
  margin: auto;
  display: block;
  left: calc( 50% - 250px );
  bottom: -100px;
  bottom: -600px;
body {
  background-color: mistyrose;
  overflow: hidden;

.logo {
  width: 100%;
  max-width: 400px;
  position: absolute;
  top: 0;
  right: 0;
.logo img {
  width: 100%;
  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;