cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

              <div class="image"></div>
   <section class="content">
    <h3>Parallax Effect</h3>
    <p>Lorem ipsum dolor sit amet, at nec solet principes. Mazim viris perpetua duo te, eum rebum necessitatibus ex. Ea veritus mediocrem vis. Sea no constituto consequuntur, no vix quot ludus. Ei vel semper consequuntur, ex percipitur referrentur mei.</p>
    <p>Sed iaculis rutrum mi, at fermentum neque fringilla at. Nullam blandit vehicula erat eu ultrices. Vestibulum at lectus eleifend urna convallis consectetur vitae id diam. Integer ultrices velit et magna imperdiet, quis tincidunt nisl semper. Proin in porta nibh. Cras ullamcorper sed urna vitae accumsan. Vivamus scelerisque dolor laoreet vulputate interdum. Nulla consectetur urna eu vulputate suscipit. Sed convallis hendrerit fringilla.<br><br>Duis sagittis sapien euismod, euismod urna nec, aliquet leo. In hac habitasse platea dictumst. Integer auctor mattis metus ut dapibus. Mauris lobortis, metus at interdum placerat, enim mauris pharetra sem, a hendrerit sem libero at sem. Suspendisse sem turpis, tempor eget nisi sed, scelerisque pellentesque nisi. Proin porta vel ante eget facilisis. Nunc risus sem, tincidunt quis vehicula at, bibendum sed tellus. Quisque urna neque, tincidunt id diam vel, pharetra condimentum nulla. Mauris tincidunt neque eget diam mollis luctus. Integer faucibus nibh tortor, a bibendum eros hendrerit sed. Etiam sed sagittis augue, pellentesque rhoncus eros. Nam consequat felis in nisl venenatis vehicula. Donec luctus mollis pellentesque. In hac habitasse platea dictumst. Integer sed quam quis diam suscipit semper. Nulla sed lectus a elit lacinia gravida. Morbi pretium pellentesque ante eget pharetra. Etiam sed posuere arcu, at mattis nulla. Integer molestie orci luctus arcu consectetur, at rutrum felis tempus. In iaculis sem sit amet auctor cursus. Donec laoreet mollis rutrum. Morbi eget mi ac est imperdiet dictum. Nunc volutpat ac risus sed congue.<br><br>Suspendisse vel pharetra velit. Maecenas quis luctus tortor, at lobortis lacus. Integer lobortis eros augue, eu cursus purus semper vitae. In convallis eu est malesuada accumsan. Integer congue scelerisque tempus. Nullam eget enim velit. Sed rhoncus turpis sit amet nunc accumsan, vitae commodo metus varius. Aenean id ligula mi. Vestibulum non eleifend leo. Nullam in risus diam. Etiam posuere imperdiet turpis sed ornare. Donec dictum nisi mi, eu aliquam lectus lobortis sed. Cras nisl nunc, congue fermentum enim sed, sollicitudin vulputate enim. Proin accumsan luctus tincidunt. Sed dictum dui at urna porttitor, in sagittis sapien tempor. Sed quam sapien, feugiat ut dignissim id, imperdiet et nisl.<br><br>Vestibulum at risus a erat blandit condimentum. In hac habitasse platea dictumst. In placerat elit sit amet bibendum mollis. Duis tempus faucibus nulla sed condimentum. Mauris elementum non odio nec iaculis. Proin viverra bibendum arcu nec vulputate. Cras libero elit, sagittis a nisl ut, adipiscing gravida leo. Sed ut congue magna.<br><br>In convallis scelerisque pellentesque. Suspendisse at rutrum velit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec vehicula augue fringilla lacinia euismod. Sed iaculis neque at sem volutpat tempor. Ut feugiat lectus ante, a ultrices diam pharetra vel. Pellentesque dapibus vitae mi ac sollicitudin. Aliquam ornare nunc augue, vitae luctus felis iaculis ut.<br><br>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque vitae nibh elit. Duis sed iaculis urna. Maecenas mattis, augue ac commodo molestie, leo nulla euismod urna, ullamcorper feugiat nulla tortor id ligula. Duis facilisis lorem vitae faucibus mattis. Mauris id metus orci. Mauris vitae iaculis erat. Mauris condimentum quam blandit magna sagittis dignissim. Aliquam eu magna quis elit aliquet hendrerit.<br><br>Nunc ornare nisl et dolor dapibus egestas. Phasellus a ligula a metus condimentum ornare sed sit amet odio. Nunc malesuada ornare orci, eu cursus sem venenatis sed. Suspendisse tortor erat, vulputate ac tellus quis, lacinia porta nulla. Sed ac quam venenatis, rutrum neque at, eleifend nulla. Quisque placerat auctor eleifend. Maecenas convallis justo in nisl vulputate euismod. Suspendisse tincidunt purus nibh, id accumsan neque suscipit ut. Ut vehicula, velit in pharetra imperdiet, augue justo pellentesque tortor, eu dignissim mi velit ut sapien. Proin eget tempor neque, nec vehicula ipsum. Donec vitae lacus bibendum, bibendum nisi eget, malesuada sem. Nunc cursus mauris et gravida dictum. Sed volutpat tellus justo, et molestie diam vehicula vitae. Aenean tincidunt justo ac viverra fringilla. Donec congue molestie congue. Nunc bibendum, risus in blandit tempus, felis tortor porttitor ante, ac lacinia libero eros id purus. Proin a aliquam mauris, eget scelerisque felis. Pellentesque nec quam vehicula tortor dignissim gravida eu eu arcu. Proin molestie arcu ac dui dictum aliquam sed at odio. Suspendisse massa justo, laoreet a odio et, semper lobortis tellus. Nulla sagittis dui eget libero semper, a porta est aliquam. Morbi porttitor odio ac sem porttitor tempor. Sed suscipit id libero tristique fermentum. Sed nisi lectus, condimentum non sapien eu, luctus vestibulum leo. Nunc rutrum diam in enim iaculis, nec rhoncus ipsum egestas. Nulla convallis est vitae mollis sagittis.</p>
      <p><a href="javascript:window.location.href=window.location.href">&lt; back</a></p>
              @import url(https://fonts.googleapis.com/css?family=Noto+Sans:400,700);
* {
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%; }
body { 
    background-color: #f4f4f4;
    font-weight: normal;
    font-style: normal;
  margin: 0;
  padding: 0;
  border: 0; }
h3 {
    font-family: 'Noto Sans', serif;
    font-size: 2em;
    color: #333;
p {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.3em;
    line-height: 1.5em;
    color: #666; 
    margin: 30px 0;
.image {
    background: url('http://farm6.staticflickr.com/5104/5862419072_7f9632f068_b.jpg') no-repeat fixed;
    background-position: center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    min-height: 500px;
.content {
    max-width: 960px;
    margin: 0 auto;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    position: relative;
    z-index: 2;
    height: 100%;
a:link, a:visited {
        color: #666;
        text-decoration: underline; }
a:hover {
        color: #01c59f; }
              // See this details and thanks for visiting my codepen. All rights of the photo are from https://www.flickr.com/photos/statelibraryofnsw/
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................