Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

HTML

              
                <script src="https://unpkg.com/scrollreveal/dist/scrollreveal.min.js"></script>
<section class="hero">
  <h1>I WANNA BE A LANDING PAGE</h1>
</section>
<section class="section">

<div class="row box">
  <div class="col-md-4 bg-gradient">
    <h3>CENTER TEXT</h3>
  </div>
  <article class="col-md-8">
  <h2>Title</h2>
    <div class="stroke"></div>
  <p>Donec id elit non mi porta gravida at eget metus. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Donec ullamcorper nulla non metus auctor fringilla. Cras mattis consectetur purus sit amet fermentum.</p>
    </article>
</div>
  
 <div class="row box">  
  <article class="col-md-8">
  <h2>Title</h2>
  <div class="stroke"></div>
  <p>Donec id elit non mi porta gravida at eget metus. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Donec ullamcorper nulla non metus auctor fringilla. Cras mattis consectetur purus sit amet fermentum.</p>
    </article>
   <div class="col-md-4 bg-gradient">
    <h3>CENTER TEXT</h3>
  </div>
</div>
  
  
<div class="row box">
  <div class="col-md-4 bg-gradient">
    <h3>CENTER TEXT</h3>
  </div>
  <article class="col-md-8">
  <h2>Title</h2>
    <div class="stroke"></div>
  <p>Donec id elit non mi porta gravida at eget metus. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Donec ullamcorper nulla non metus auctor fringilla. Cras mattis consectetur purus sit amet fermentum.</p>
    </article>
</div>
  
 <div class="row box">  
  <article class="col-md-8">
  <h2>Title</h2>
  <div class="stroke"></div>
  <p>Donec id elit non mi porta gravida at eget metus. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Donec ullamcorper nulla non metus auctor fringilla. Cras mattis consectetur purus sit amet fermentum.</p>
    </article>
   <div class="col-md-4 bg-gradient">
    <h3>CENTER TEXT</h3>
  </div>
</div>

</section>
              
            
!

CSS

              
                .grad() {
//  background-image: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
  background-image: linear-gradient(60deg, #64b3f4 0%, #c2e59c 100%);
}
.center-content-vertically() {
    display:flex;
    flex-direction: column;
    justify-content:center;
}
  
section.hero {
  height:1000px;
  width:100%;
  background-color:#303030;
  margin:0px;
  .grad();
//  background-image: url("http://static.zoommyapp.com/full/78862.jpg") center center no-repeat;
  //display:flex;
  h1 {
    padding-top:150px;
    color:#fff;
    font-size:150px;
    text-align:center;
    font-weight:bold;
    .center-content-vertically();
  }
}
section {
  margin:10px 0px;
}
.box {
  padding:150px 50px;
  article {
    padding:20px;
    .center-content-vertically();
    h2 {
      margin-bottom:5px;
      font-weight:bold;
    }
    .stroke {
      height:3px;
      width:50px;
      background-color:#282828;
      margin:10px 0px;
    }
  }
}

.bg-gradient {
  .grad();
  height:250px;
  width:250px;
  color:#fff;
  text-align:center;
  .center-content-vertically();
 
}


              
            
!

JS

              
                $(document).ready(function() {
    var intro0 = {
        //viewFactor : 0.15,
        origin   : "top",
        distance : "54px",
        duration : 1000,
        easing   : 'cubic-bezier(0.16, 0.84, 0.44, 1)',
        reset    : true,
        mobile   : false,
        delay    : 500,
        scale    : 1
    };
      var intro1 = {
      //viewFactor : 0.15,
      origin   : "bottom",
      distance : "34px",
      duration : 800,
      easing   : 'cubic-bezier(0.16, 0.84, 0.44, 1)',
      reset    : true,
      mobile   : false,
      delay    : 500,
      scale    : 1
    };
    var intro2 = {
      origin   : "bottom",
      distance : "34px",
      duration : 800,
      easing   : 'cubic-bezier(0.16, 0.84, 0.44, 1)',
      reset    : true,
      mobile   : false,
      delay    : 800,
      scale    : 1
    };
    var intro3 = {
      //viewFactor : 0.15,
      origin   : "bottom",
      distance : "34px",
      duration : 800,
      easing   : 'cubic-bezier(0.16, 0.84, 0.44, 1)',
      reset    : true,
      mobile   : false,
      delay    : 900,
      scale    : 1
    };
    var intro4 = {
      //viewFactor : 0.15,
      origin   : "bottom",
      distance : "34px",
      duration : 800,
      easing   : 'cubic-bezier(0.16, 0.84, 0.44, 1)',
      reset    : true,
      mobile   : false,
      delay    : 1000,
      scale    : 1
    };
    var introFadeIn = {
      //viewFactor : 0.15,
      origin   : "left",
      distance : "10px",
      duration : 800,
      easing   : 'cubic-bezier(0.16, 0.84, 0.44, 1)',
      reset    : false,
      mobile   : false,
      delay    : 800,
      scale    : 1,
      opacity  : 0
    };
  
  
    window.sr = ScrollReveal();
    $(".sRevealHidden").addClass('sRevealShow');
      if (sr.isSupported()) {
        document.documentElement.classList.add('sr');
      } else {
          console.log("scroll reveal not supported");
          $(".sRevealHidden").css("visibility","visibile");
          return;
      }
  sr.reveal( '.hero h1 ', intro0 );
  sr.reveal( '.box .bg-gradient ', intro1 );
  sr.reveal( '.box .bg-gradient h3 ', intro1 );
  sr.reveal( '.box h2 ', intro3 );
  sr.reveal( '.box .stroke ', intro2 );
  sr.reveal( '.box p ', intro4 );
  
}); // eof document ready
              
            
!
999px

Console