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

              
                 <link rel=stylesheet href="https://fortawesome.github.io/Font-Awesome/assets/font-awesome/css/font-awesome.css">
<section class="header">
    <div class="mask">
        <div class="text-align">
            <h1>Only CSS <br/>Simple Parallax Background Effect </h1>
        </div>
        <a href="#section" class="section"><i class="fa fa-chevron-circle-down"></i></a>
    </div>
</section>


<section class="section-one" id="section">
    <div class="container">
        <div class="row">
            <div class="col-md-12 text-center">
                <h1>Simple Parallax Section Two</h1>
              <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc non malesuada dolor. Vestibulum ipsum nisi, dictum sit amet semper id, auctor vel purus. Nunc in ipsum euismod leo interdum eleifend sed ut massa. Nunc ullamcorper imperdiet orci in scelerisque. Sed at scelerisque sem. Interdum et malesuada fames ac ante ipsum primis in faucibus. Duis vestibulum interdum velit ac venenatis. Praesent semper mollis laoreet. Morbi gravida rhoncus massa, at hendrerit ante mollis vel. Etiam sed lorem eu purus mollis ornare non eget eros.</p>
            </div>
      </div>
  </div>
</section>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Inconsolata:400,700&subset=latin,latin-ext);

html,body{
  width: 100%;
  height: 100%;
  font-family: "Inconsolata";
  -webkit-font-smoothing: antialiased;
  background-color: #E9E7E7;

}

h1{
  color:#F5A623;
  font-weight: 400;
  margin-bottom: 15px;
  margin-top: 0;
  font-size: 32px;
}

h2{
  font-size: 32px;
  color: white;
  font-weight: 400;
}
h4{
  font-size: 24px;
  margin-bottom: 50px;
  font-weight: 400;
}



.header{
  width: 100%;
  height: 100%;
  background-image: url("http://minimalcoding.net/wp-content/uploads/2015/06/res3.gif");
  background-size: cover;
  background-position:center center ;
  position: relative;
  background-attachment: fixed;
  left: 0;
  top: 0;
  .mask{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color:rgba(#000,.8);

    .text-align{
      position: relative;
      display: inline-block;
      padding: 0px 20px;
      text-align: center;
      left: 50%;
      top:50%;
      transform: translate(-50%,-50%);
      -webkit-transform:  translate(-50%,-50%);
    }
  }

  a{
    color: #F5A623;
    font-size: 24px;
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translate(-50%,0%);
    -webkit-transform:  translate(-50%,0);
    -webkit-transition: color 300ms ease-in-out;
    -o-transition:  color 300ms ease-in-out;
    transition: color 300ms ease-in-out;
    &:hover,&:active,&:focus{
      text-decoration: none;
      color: white;
    }
  }
}

.section-one{
  padding-top: 50px;
  position: relative;
  padding-bottom: 50px;
  min-height: 500px;

  a{
    color:#2D2E31;
    font-size: 24px;
    bottom: 20%;
    -webkit-transition: color 300ms ease-in-out;
    -o-transition:  color 300ms ease-in-out;
    transition: color 300ms ease-in-out;
    &:hover,&:active,&:focus{
      text-decoration: none;
      color: #F5A623;
    }
  }
}

              
            
!

JS

              
                  $(".section").click(function () {
            $('html, body').animate({
                scrollTop: $( $(this).attr('href') ).offset().top
            }, 1000);
            return false;
        });

              
            
!
999px

Console