Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

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

Packages

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.

Behavior

Auto Save

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

              
                <h1>WARNING! NOT FOR EPILEPTICS!!</h1>
<div class="bob"></div>
<div class="bob"></div>
<div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><diqv class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div>
<div class="bob"></div>
<div class="bob"></div>
<div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div><div class="bob"></div>
<div class="bob"></div>
              
            
!

CSS

              
                body {
  background: #443242;

}
h1 {
  color: white;
  font-size: 30px;
  padding: 8px;
  font-family: Avenir, Verdana;
}

.bob:after,
.bob:before {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 19px;
  z-index: -1;

  border: 1px double #fdad56;
  -webkit-animation: border3 9s infinite reverse;
}
.bob:after {
  border: 1px double #443242;
  -webkit-animation: border1 12s infinite;

}

.bob {
  -webkit-animation: border1 4.1s infinite;
  border: 1px dotted #594051;
  &:nth-child(2n) {
    border-style: dashed;
    -webkit-animation: border1 7.2s infinite;
  }
  &:nth-child(5n) {
    border-color: #d1d1db; 
    -webkit-animation: border3 13s infinite linear;
  }
  &:nth-child(7n) {
    border-color: #9d3235;
    -webkit-animation: border2 2s infinite ease-out;
  }
  &:nth-child(9n) {
    border-top-style: double;
  }
}

@-webkit-keyframes border1 {
  from {
    border-top-width: 197px; /* CHANGE ME*/
    border-bottom-width: 1px;
  }
  to {
    border-top-width: 1px;
    border-bottom-width: 17px; /* CHANGE ME*/
  }
} 
@-webkit-keyframes border2 {
  from {
    border-top-width: 200px; /* CHANGE ME*/
    border-bottom-width: 1px;
  }
  1% {
    border-top-width:2px; /* CHANGE ME*/
    border-bottom-width: 1px;    
  }
  20% {
    border-top-width:280px; /* CHANGE ME*/
    border-bottom-width: 1px;    
  }
  to {
    border-top-width: 1px;
    border-bottom-width: 0px;
  }
}
@-webkit-keyframes border3 {
  from {
    border-top-width: 90px; /* CHANGE ME*/
    border-bottom-width: 1px;
  }
  to {
    border-top-width: 1px;
    border-bottom-width: 5px;
  }
} 
              
            
!

JS

              
                
              
            
!
999px

Console