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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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 id="content">
  <header class="column-xs main-xs-between cross-xs-center full-image-wrap">
    <h1 class="column-xs main-xs-center">Hero Header Text</h1>
    <a href="#main" class="down-arr">&#8595;</a>
    <img class="full-image" src="https://images.unsplash.com/photo-1458324124043-7803d4fec380?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&w=1080&fit=max&s=df280ed170d2a9e25506f2d3db42f4f9" alt="">
  </header>
  <main id="main">
    <section class="row-xs main-xs-center cross-xs-center">
      <h3>Interdum et malesuada fames ac ante ipsum primis in faucibus. Sed ut ultricies ante, eu accumsan mi. Donec mattis varius suscipit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat lorem, mattis porta sollicitudin efficitur, maximus eu nisi. Mauris ut massa at felis tincidunt ullamcorper ac ut ligula. Proin volutpat sapien in eleifend accumsan. Pellentesque sed finibus massa.</h3>
    </section>
    <section class="row-xs main-xs-center cross-xs-center">
      <h3>Interdum et malesuada fames ac ante ipsum primis in faucibus. Sed ut ultricies ante, eu accumsan mi. Donec mattis varius suscipit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat lorem, mattis porta sollicitudin efficitur, maximus eu nisi. Mauris ut massa at felis tincidunt ullamcorper ac ut ligula. Proin volutpat sapien in eleifend accumsan. Pellentesque sed finibus massa.</h3>
    </section>
  </main>
</div>
            
          
!
            
              /*
Flexbox grid: https://github.com/anacoelhovicente/tangerine
*/

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale
}

html,
body {
  color: #444;
  font: 400 14px/1.5 Montserrat, sans-serif;
}

a,
a:hover,
a:focus {
  color: inherit;
  outline: none;
  text-decoration: none;
}

h3 {
  font-size: 1.5rem;
  margin: 0;
}

header {
  color: #FFF;
  height: 100vh;
  text-align: center;
}

header h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  flex-grow: 1;
  z-index: 1
}

.down-arr {
  font-size: 2rem;
  padding: 0 20px 20px 20px;
  z-index: 1
}

section {
  min-height: 100vh;
  padding: 40px 100px;
  text-align: center;
  width: 100%;
}

section:nth-child(2) {
  background: #ECF0F1;
}

.full-image-wrap {
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

.full-image {
  height: auto;
  left: 0;
  min-height: 100%;
  min-width: 100%;
  position: absolute;
  top: 0;
  width: auto;
}
            
          
!
            
              $(document.body).on('click', 'a[href*="#"]', function(e) {
  e.preventDefault();
  $('html,body').animate({
    scrollTop: $(this.hash).offset().top
  }, 900);
});

$(window).on('scroll', function() {
  var scrolled = $(window).scrollTop();
  var height = $(window).height();
  if (scrolled < height) {
    $('.full-image').css({
      'top': -scrolled * .5
    });
  }
});
            
          
!
999px
Loading ..................

Console