Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

HTML

              
                <article>
  <h1>Rapunzel</h1>
  <p>
    Once upon a time there was a man and a woman who had long, but to no avail, wished for a child. Finally the woman came to believe that the good Lord would fulfill her wish. Through the small rear window of these people's house they could see into a splendid garden that was filled with the most beautiful flowers and herbs. The garden was surrounded by a high wall, and no one dared enter, because it belonged to a sorceress who possessed great power and was feared by everyone.
  </p>
  <img src="http://www.webcreatorbox.com/sample/images/garden.jpg" alt="" />
  <p>
    One day the woman was standing at this window, and she saw a bed planted with the most beautiful rapunzel. It looked so fresh and green that she longed for some. It was her greatest desire to eat some of the rapunzel. This desire increased with every day, and not knowing how to get any, she became miserably ill.
  </p>
  <img src="http://www.webcreatorbox.com/sample/images/beach-footprint.jpg" alt="" />
  <p>
    Her husband was frightened, and asked her, "What ails you, dear wife?"
  </p>
  <img src="http://www.webcreatorbox.com/sample/images/demo14-cat.jpg" alt="" />
  <p>
    "Oh," she answered, "if I do not get some rapunzel from the garden behind our house, I shall die."
  </p>
  <img src="http://www.webcreatorbox.com/sample/images/demo9-beach.jpg" alt="" />
  <p>
    The man, who loved her dearly, thought, "Before you let your wife die, you must get her some of the rapunzel, whatever the cost."
  </p>
  <img src="http://www.webcreatorbox.com/sample/images/hands-heart-love.jpg" alt="" />
  <p>
    So just as it was getting dark he climbed over the high wall into the sorceress's garden, hastily dug up a handful of rapunzel, and took it to his wife. She immediately made a salad from it, which she devoured eagerly. It tasted so very good to her that by the next day her desire for more had grown threefold. If she were to have any peace, the man would have to climb into the garden once again. Thus he set forth once again just as it was getting dark. But no sooner than he had climbed over the wall than, to his horror, he saw the sorceress standing there before him.
  </p>
  <img src="http://www.webcreatorbox.com/sample/images/beach.jpg" alt="" />
  <p>
    "How can you dare," she asked with an angry look, "to climb into my garden and like a thief to steal my rapunzel? You will pay for this."
  </p>
  <img src="http://www.webcreatorbox.com/sample/images/rose.jpg" alt="" />
  <p>
    "Oh," he answered, "Let mercy overrule justice. I came to do this out of necessity. My wife saw your rapunzel from our window, and such a longing came over her, that she would die, if she did not get some to eat."
  </p>
</article>
              
            
!

CSS

              
                /* GENERAL STYLING */
body {
  font: 18px/1.5 georgia, serif;
}
article {
  width: 600px;
  margin: 0 auto;
}
h1 {
  font-weight: normal;
  text-align: center;
}

/* IMAGE BLUR EFFECT */
img {
  max-width: 600px;
  -webkit-filter: blur(15px);
  filter: blur(15px);
}
.img-blur {
  animation: imageBlur 1s both;
}
@keyframes imageBlur {
  100% {
    -webkit-filter: blur(0);
    filter: blur(0);
  }
}
              
            
!

JS

              
                $(window).scroll(function() {
  var windowH = $(window).height(),
    scrollY = $(window).scrollTop();
  $('img').each(function() {
    var imgPosition = $(this).offset().top;
    if (scrollY > imgPosition - windowH) {
      $(this).addClass("img-blur");
    }
  });
});
              
            
!
999px

Console