123

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <section id="full-to-fold">
  <h1>FFS</h1>
  <h2>Full Fold + Scroll</h2>
  <a href="http://intenseminimalism">Read the full article</a>
  <span>Or scroll down...</span>
</section>
<section id="rest-of-page">
  <h1>And here's the Scroll</h1>
  <p>
    The FFS pattern keeps the first view block as always filling the viewport, while the rest of the page is always a scroll away.<br/>
    This gives the designer full control of where to start the fold – it can be also less than 100% and give some precisely defined "peek" to the rest of the page.
  </p>
  <h1>Some more text</h1>
  <p>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore error blanditiis eius sit, repudiandae doloremque aliquid natus neque vero. Odio nulla repellendus porro beatae non perspiciatis deserunt aspernatur mollitia quia?
  </p>
  <p>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore error blanditiis eius sit, repudiandae doloremque aliquid natus neque vero. Odio nulla repellendus porro beatae non perspiciatis deserunt aspernatur mollitia quia?
  </p>
</section>
            
          
!
            
              




/* This is all you need: */
html, body, #full-to-fold {
  height: 100%;
}














/* The rest is just some style */
body {
  margin: 0;
  padding: 0;
  font-family: Helvetica, Arial, sans-serif;
}

#full-to-fold {
  background: #0087be;
}

#rest-of-page {
  background: #be0087;
}

#full-to-fold,
#rest-of-page {
  color: #ffffff;
  padding: 20px;
}

h1, h2 {
  font-weight: 100;
}

h1 {
  font-size: 3em;
  margin: 2em 0 0;
}

h2 {
  font-size: 1.2em;
  margin: 0.3em 0 2em;
}

p {
  font-weight: 100;
}

#full-to-fold a {
  font-size: 14px;
  padding: 10px;
  color: #0087be;
  background: #ffffff;
  border-radius: 2px;
  text-decoration: none;
}

#full-to-fold span {
  font-size: 14px;
  font-weight: 100;
  position: absolute;
  bottom: 20px;
  left: 20px;
}
            
          
!
999px
🕑 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.

Console