Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ add another resource

JavaScript

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

Packages

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.

Behavior

Auto Save

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

              
                <body>
  
 <style type="text/css">
 
 a:link {text-decoration: none}
 a:visited {text-decoration: none}
 a:active {text-decoration: none}
 a:hover {text-decoration: underline}
 
 </style>
  
<div id="backgroundImg1">
  </div>
  
<div id="button-bar">
</div>

<div id="download">
<h2>
  <a href="https://codepen.io/Caged_Enigma/pen/jPPwEg?editors=110" style="color: #FFFFFF">Source Code</a>
  </h2>
</div>

<div id="textbox">
  <h1>
    Parallax Scrolling
  </h1>
  <p>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam sodales dui eget risus malesuada, sed convallis felis posuere. Sed facilisis congue tortor, ac commodo nulla laoreet id. Vivamus faucibus, metus quis faucibus fringilla, erat turpis interdum
    ligula, non fermentum neque purus ac ante. Proin blandit quis turpis sed mattis. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
    <p>
    Donec egestas sit amet orci vitae rhoncus. Cum sociis natoque penatibus et magnis
    dis parturient montes, nascetur ridiculus mus. Maecenas pharetra felis vitae venenatis accumsan. Cras sollicitudin non metus vitae ullamcorper. Ut ullamcorper nisi elit, a auctor velit pellentesque sit amet. Aliquam tincidunt sapien diam, a vehicula
    risus ullamcorper sed. Praesent non interdum neque, pulvinar posuere risus. Sed vel turpis nec est convallis tempor. In dignissim euismod erat sed scelerisque. Curabitur eu nunc eget nibh egestas malesuada nec non erat. 
    
    
    Aenean aliquam lectus mauris,
    id egestas quam porttitor in. Donec a gravida metus. Nullam varius malesuada dolor, sodales commodo lacus lacinia id. Nunc ac ligula dictum, vehicula dui eget, pretium enim. Aliquam tristique tortor quis dui viverra, eget malesuada velit molestie.
    Suspendisse nec condimentum orci, a luctus libero. Maecenas porta dolor ex, ac efficitur urna egestas vel. Fusce at sem auctor, dignissim urna eget, placerat lectus.
    </p>  
    <p>
    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis
    egestas. Etiam mauris urna, tempus et lorem nec, laoreet dignissim turpis. Nulla et enim vestibulum, condimentum nisl vitae, ullamcorper massa. Suspendisse potenti. Etiam turpis urna, mollis ut ipsum et, gravida mollis diam. Cras leo eros, consectetur
    in purus ac, blandit ornare lectus. Proin vel eros fringilla leo facilisis interdum a ornare tellus. Donec elementum elit ipsum, vitae dapibus justo blandit eget. Quisque ante mi, feugiat nec diam id, sollicitudin euismod metus. Pellentesque eget nisi justo. Fusce nec sollicitudin lacus. Sed egestas volutpat venenatis. Suspendisse nec bibendum dui, malesuada ultricies lacus. Cum sociis natoque
    penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed mattis, lectus ac viverra ornare, velit nulla gravida mi, eget dignissim velit ipsum quis purus.
    </p>
  </p>
</div>

<div id="button-bar2">
</div>

<div id="textbox2">
  <h1>
    Clean & Sleek
  </h1>
  <p>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam sodales dui eget risus malesuada, sed convallis felis posuere. Sed facilisis congue tortor, ac commodo nulla laoreet id. Vivamus faucibus, metus quis faucibus fringilla, erat turpis interdum
    ligula, non fermentum neque purus ac ante. Proin blandit quis turpis sed mattis. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
    <p>
    Donec egestas sit amet orci vitae rhoncus. Cum sociis natoque penatibus et magnis
    dis parturient montes, nascetur ridiculus mus. Maecenas pharetra felis vitae venenatis accumsan. Cras sollicitudin non metus vitae ullamcorper. Ut ullamcorper nisi elit, a auctor velit pellentesque sit amet. Aliquam tincidunt sapien diam, a vehicula
    risus ullamcorper sed. Praesent non interdum neque, pulvinar posuere risus. Sed vel turpis nec est convallis tempor. In dignissim euismod erat sed scelerisque. Curabitur eu nunc eget nibh egestas malesuada nec non erat. 
    
    
    Aenean aliquam lectus mauris,
    id egestas quam porttitor in. Donec a gravida metus. Nullam varius malesuada dolor, sodales commodo lacus lacinia id. Nunc ac ligula dictum, vehicula dui eget, pretium enim. Aliquam tristique tortor quis dui viverra, eget malesuada velit molestie.
    Suspendisse nec condimentum orci, a luctus libero. Maecenas porta dolor ex, ac efficitur urna egestas vel. Fusce at sem auctor, dignissim urna eget, placerat lectus.
    </p>  
    <p>
    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis
    egestas. Etiam mauris urna, tempus et lorem nec, laoreet dignissim turpis. Nulla et enim vestibulum, condimentum nisl vitae, ullamcorper massa. Suspendisse potenti. Etiam turpis urna, mollis ut ipsum et, gravida mollis diam. Cras leo eros, consectetur
    in purus ac, blandit ornare lectus. Proin vel eros fringilla leo facilisis interdum a ornare tellus. Donec elementum elit ipsum, vitae dapibus justo blandit eget. Quisque ante mi, feugiat nec diam id, sollicitudin euismod metus. Pellentesque eget nisi justo. Fusce nec sollicitudin lacus. Sed egestas volutpat venenatis. Suspendisse nec bibendum dui, malesuada ultricies lacus. Cum sociis natoque
    penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed mattis, lectus ac viverra ornare, velit nulla gravida mi, eget dignissim velit ipsum quis purus.
    </p>
  </p>
</div>

</body>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Hind:600,500);
#download {
  opacity: 0.85;
  background: #FF3232;
  width: 180px;
  height: 65px;
  font-family: Hind, 600;
  color: #FFFFFF;
  text-align: center;
  padding-top: 2px;
  padding-bottom: 6px;
  position: absolute;
  top: 300px;
  left: 625px;
}

#backgroundImg1 {
 height: 2000px;
 background: url(http://img.inspiringwallpapers.net/wp-content/uploads/2014/09/san-francisco-city-at-night-reflection-water.jpg) top center no-repeat fixed;
 background-size: cover;
 margin-left: -8px;
 margin-top: -8px;
}

#button-bar {
  position: absolute;
  top: 500px;
  background: #262626;
  padding: 10px;
  padding-left: 810px;
  width: 100%;
  height: 32px;
  font-family: Hind, 600;
  color: #FFFFFF;
  font-size: 20px;
  margin: auto;
  margin-top: 100px;
  margin-left: -8px;
}

#textbox {
  opacity: 0.5;
  position: absolute;
  top: 650px;
  background: #FFFFFF;
  height: 360px;
  width: 101.4%;
  margin: auto;
  margin-left: -8px;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 65px;
  font-family: Hind;
  font-size: 15px;
}

#button-bar2 {
  position: absolute;
  top: 1350px;
  background: #262626;
  padding: 10px;
  padding-left: 810px;
  width: 100%;
  height: 32px;
  font-family: Hind, 600;
  color: #FFFFFF;
  font-size: 20px;
  margin: auto;
  margin-top: 100px;
  margin-left: -8px;
}

#textbox2 {
  opacity: 0.5;
  position: absolute;
  background: #FFFFFF;
  top: 1500px;
  height: 340px;
  width: 101.4%;
  margin: auto;
  margin-left: -8px;
  padding-left: 15px;
  padding-bottom: 85px;
  font-family: Hind;
  font-size: 15px;
}

              
            
!

JS

              
                
              
            
!
999px

Console