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="box">
    			Hover to Animate Me

<p class="p">Demo by Maria Antonietta Perna. <a href="" target="_blank">See article</a>.</p>


                /* Fake animation of mix-blend-mode on the text using Dave Lunny's technique for animating CSS3 gradients.  You can find Dave Lunny's work around here: */

@import url(;
* {
  box-sizing: border-box;

body {
  background-color: #555;
  font-size: 1.5em;
  font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;

.box {
  background: url( no-repeat;
  background-size: cover;
  border: 1px solid #555;
  text-align: center;
  margin: 1em auto;
  padding: 300px 0 0;
  width: 100%;
  max-width: 600px;
  mix-blend-mode: luminosity;

.box h1 {
  background-color: #c5eff7;
  color: #22a7f0;
  position: relative;
  bottom: 2em;
  line-height: 1.2;
  mix-blend-mode: hard-light;
/*create duplicate of h1 and place it  on top of the original element.  Set its opacity to 0 to reveal the original.  Transitioning the duplicate's opacity value to 1 on hover covers the original h1 elment and displays the duplicate with a different blend mode and an animation effect.*/

.box h1:before {
  content: "Hover to Animate Me";
  color: green;
  display: block;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  mix-blend-mode: multiply;
  transition: opacity .5s linear;

.box:hover h1:before {
  opacity: 1;

.p {
  text-align: center;
  padding-top: 100px;
  font-size: 13px;
  font-weight: normal;
  font-family: Arial;