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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


                <header class="header">
  <div class="header__title">
  <div class="header__reference">
    <ul class="reference-list">
      <li><a class="reference-list__link" href="">MDN reference</a></li>
      <li><a class="reference-list__link" href="">caniuse Support</a></li>

  <div class="example">
      In this example, we have a blurry pink Space Invader hiding behind our green one! What's especially cool about this is that the green Space Invader is a rectangular raster PNG image, but <code>drop-shadow()</code> works with the image's transparent areas. 
      If you hover over the example area, we're able to animate the filter effect to increase the blur effect and darken the pink color:

    <div class="example__demo example__demo--drop-shadow">
        alt="A lime green, 3D Space Invader from the game of the same name." 
        src="" />


                // Demo
.space-invader {
  height: auto;
  filter: drop-shadow(3rem 0 0.5rem #e486da);
  margin-right: 2rem;
  width: 50%;
    filter var(--transition-duration-long) ease-in-out,
    transform var(--transition-duration-long) ease-in-out;

.example__demo--drop-shadow:hover {
  .space-invader {
    transform: translateX(-2rem);
    filter: drop-shadow(7rem 0 1rem #965990);    

// Pen Setup
.example__demo--drop-shadow {
  background-color: var(--color-cinder);
  background-size: cover;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding-top: 4rem;
  padding-bottom: 4rem;