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.


                <div class="sibling-fade">
  <a href="#">Lorem</a>
  <a href="#">Dolor</a>
  <a href="#">Repellat</a>
  <a href="#">Quisquam</a>
  <a href="#">Quidem</a>
  <a href="#">Quae</a>
  <a href="#">Maiores</a>
  <a href="#">Suscipit</a>
  <a href="#">Minima</a>
  <a href="#">Aliquam</a>
  <a href="#">Sapiente</a>
  <a href="#">Sequi</a>
  <a href="#">Sit</a>
  <a href="#">Molestias</a>
  <a href="#">Neque</a>
  <a href="#">Deleniti</a>
  <a href="#">Sint</a>
  <a href="#">Id</a>
  <a href="#">Facilis</a>
  <a href="#">Facere</a>


                /* SIBLING FADE: fade out siblings around a hovered item */

.sibling-fade { visibility: hidden; }
/* Prevents :hover from triggering in the gaps between items */

.sibling-fade > * { visibility: visible; }
/* Brings the child items back in, even though the parent is `hidden` */

.sibling-fade > * { transition: opacity 150ms linear 100ms, transform 150ms ease-in-out 100ms; }
/* Makes the fades smooth with a slight delay to prevent jumps as the mouse moves between items */

.sibling-fade:hover > * { opacity: 0.4; transform: scale(0.9); }
/* Fade out all items when the parent is hovered */

.sibling-fade > *:hover { opacity: 1; transform: scale(1); transition-delay: 0ms, 0ms; }
/* Fade in the currently hovered item */

/* Presentational Styles */
html { display: flex; height: 100%; }
body { 
  background: #f05555;
  padding: 10px;
  max-width: 40em;
  margin: auto;

.sibling-fade {
  display: flex;
  flex-wrap: wrap;

.sibling-fade > * {
  background: white;
  padding: 1em;
  flex: auto;
  margin: 0.3em;
  text-align: center;
  color: #f05555;
  font-size: 1.5em;
  text-decoration: none;