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

              
                <div id="austin-bats"><div>
              
            
!

CSS

              
                html, body {
  margin: 0;
  padding: 0;
  position: relative;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom, #000 50%, #fff 50%);
  overflow: hidden;
}

div {
  /* this height and width values are specific to this example */
  width: 100vw;
  height: 50vw;
  /* center the div vertically and horizontally to make it look nicer */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: slidePink2 10s infinite linear;
  background: #FF1EAD;
}
@keyframes slidePink2 {
  0% { 
    box-shadow: inset 0 -14vw 0 0 white,
      inset 50vmin 50vmin 15vmin 15vmax black;  
  }
  100% { 
    box-shadow: inset 0 -14vw 0 0 white,
      inset -75vmin -75vmin 25vmin 15vmax black; 
  }
}

div::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  /* original source: http://www.batsinaustin.com/wp-content/uploads/2016/05/austin-bats-3.png */
  background: url("https://i.stack.imgur.com/w8noS.jpg");
  background-position: top left;
  background-size: 100% 100%;
  filter: saturate(0) contrast(400%) invert(1);
  mix-blend-mode: multiply
}

              
            
!

JS

              
                
              
            
!
999px

Console