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.


  <meta charset="UTF-8">
  <title>Parallax Test</title>
  <meta name="viewport" content="initial-scale=1.0, width=device-width">
  <link rel="stylesheet" type="text/css" href="style.css">
  <div class="first"></div>
  <div class="moon"></div>
  <div class="second">
    <p>It's just distance that separates us; or are we really ethnocentrically inclined? Go tell all your friends that this is the end. My soul felt so safe up here, no self-centered natives destroying our Earth. Let's announce embargos and denounce our far foes! I just fell from the mothership, they said that your answers are always lying on the ocean bed. I just fell from the mothership, they said that your answers are always lying on the ocean bed. Tonight, I'm wide awake! There's something in the air tonight. And I'll scream with a thousand voices... I am sane!</p>
  <div class="third"></div>
  <h1 class="title">
    Apollo 11


                body {
  padding: 0;
  margin: 0;
  font-family: "Open sans", "Arial", sans-serif;
  background: #222;

.third {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #111;
  background-image: url('');
  background-position: center center;
  background-size: cover;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);

.second {
  top: 100%;
  z-index: 1;
  background-image: url('');

.second p {
  position: relative;
  max-width: 400px;
  margin: 400px auto 0;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);

.third {
  top: 200%;
  background-attachment: fixed;
  background-image: url('');

.moon {
  position: fixed;
  top: 20%;
  left: 50%;
  width: 275px;
  height: 275px;
  margin-left: -132px;
  background: #fff;
  background: url('');
  background-position: center center;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);

.title {
  position: absolute;
  top: 288%;
  display: block;
  width: 100%;
  padding: 0.5em 0;
  font-weight: 100;
  color: #222;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);