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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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

              
                <h1 data-sr="enter top hustle 50px over 1.5s">scrollReveal<small>.js</small></h1>

  <p data-sr="enter bottom wait 1s">Easily reveal elements as they enter the viewport.</p>

  <div class="column-container clearfix">
    <!-- col 1 -->
    <div class="column">
      <div class="block block-1x block-slate" data-sr="enter top over 3s wait 0.5s"></div>

      <div class="block block-2x block-mango" data-sr="enter right wait 0.5s"></div>

      <div class="block block-1x block-kiwi" data-sr="enter bottom over 1s and move 110px wait 0.3s"></div>

      <div class="block block-3x block-blueberry" data-sr="enter top over 0.5s and move 140px"></div>

      <div class="block block-2x block-raspberry" data-sr="enter bottom over 1s and move 65px"></div>

      <div class="block block-1x block-grape" data-sr="enter top"></div>
    </div>
    
    <!-- col 2 -->
    <div class="column">
      <div class="block block-3x block-kiwi" data-sr="enter bottom over 1s and move 110px wait 0.3s"></div>

      <div class="block block-1x block-orange" data-sr="enter left"></div>

      <div class="block block-2x block-grape" data-sr="enter top"></div>

      <div class="block block-1x block-orange" data-sr="enter left"></div>

      <div class="block block-1x block-grape" data-sr="enter top"></div>

      <div class="block block-2x block-slate" data-sr="enter top over 3s wait 0.5s"></div>
    </div>

    <!-- col 3 -->
    <div class="column">
      <div class="block block-2x block-raspberry" data-sr="enter bottom over 1s and move 65px"></div>

      <div class="block block-1x block-blueberry" data-sr="enter top over 0.5s and move 140px"></div>

      <div class="block block-2x block-slate" data-sr="enter top over 3s wait 0.5s"></div>

      <div class="block block-1x block-mango" data-sr="enter right wait 0.5s"></div>

      <div class="block block-1x block-slate" data-sr="enter top over 3s wait 0.5s"></div>

      <div class="block block-3x block-orange" data-sr="enter left"></div>
    </div>

    <!-- col 4 -->
    <div class="column">
      <div class="block block-1x block-orange" data-sr="enter left"></div>

      <div class="block block-2x block-grape" data-sr="enter top"></div>

      <div class="block block-3x block-raspberry" data-sr="enter bottom over 1s and move 65px"></div>

      <div class="block block-1x block-blueberry" data-sr="enter top over 0.5s and move 140px"></div>

      <div class="block block-2x block-kiwi" data-sr="enter bottom over 1s and move 110px wait 0.3s"></div>

      <div class="block block-1x block-mango" data-sr="enter right wait 0.5s"></div>
    </div>

    <!-- col 5 -->
    <div class="column">
      <div class="block block-3x block-mango" data-sr="enter right wait 0.5s"></div>

      <div class="block block-1x block-kiwi" data-sr="enter bottom over 1s and move 110px wait 0.3s"></div>

      <div class="block block-2x block-orange" data-sr="enter left"></div>

      <div class="block block-1x block-grape" data-sr="enter top"></div>

      <div class="block block-1x block-slate" data-sr="enter top over 3s wait 0.5s"></div>

      <div class="block block-2x block-raspberry" data-sr="enter bottom over 1s and move 65px"></div>
    </div>

    <!-- col 6 -->
    <div class="column">
      <div class="block block-1x block-kiwi" data-sr="enter bottom over 1s and move 110px wait 0.3s"></div>

      <div class="block block-3x block-slate" data-sr="enter top over 3s wait 0.5s"></div>

      <div class="block block-1x block-blueberry" data-sr="enter top over 0.5s and move 140px"></div>

      <div class="block block-3x block-kiwi" data-sr="enter bottom over 1s and move 110px wait 0.3s"></div>

      <div class="block block-1x block-orange" data-sr="enter left"></div>

      <div class="block block-1x block-blueberry" data-sr="enter top over 0.5s and move 140px"></div>
    </div>

    <!-- col 7 -->
    <div class="column">
      <div class="block block-2x block-blueberry" data-sr="enter top over 0.5s and move 140px"></div>

      <div class="block block-1x block-raspberry" data-sr="enter bottom over 1s and move 65px"></div>

      <div class="block block-1x block-mango" data-sr="enter right wait 0.5s"></div>

      <div class="block block-3x block-raspberry" data-sr="enter bottom over 1s and move 65px"></div>

      <div class="block block-2x block-mango" data-sr="enter right wait 0.5s"></div>

      <div class="block block-1x block-slate" data-sr="enter top over 3s wait 0.5s"></div>
    </div>

    <!-- col 8 -->
    <div class="column">
      <div class="block block-1x block-grape" data-sr="enter top"></div>

      <div class="block block-2x block-orange" data-sr="enter left"></div>

      <div class="block block-1x block-grape" data-sr="enter top"></div>

      <div class="block block-3x block-slate" data-sr="enter top over 3s wait 0.5s"></div>

      <div class="block block-1x block-blueberry" data-sr="enter top over 0.5s and move 140px"></div>

      <div class="block block-2x block-kiwi" data-sr="enter bottom over 1s and move 110px wait 0.3s"></div>
    </div>
</div>

<div class="footer">
  <p data-sr="wait 1.3s enter bottom over 1s hustle 50px"><small class="floater">Have you tried scrolling back up?</small></p>
</div>
              
            
!

CSS

              
                *{
  -moz-box-sizing:border-box;
  box-sizing:border-box
}
html,body{
  font-weight:300;
  height:100%;
  background:#1a2434;
  color:#fff;
  text-align:center
}
@media screen and (min-width:300px){
  html,body{
    font-size:14px
  }
}
@media screen and (min-width:460px){
  html,body{
    font-size:20px
  }
}
@media screen and (min-width:900px){
  html,body{
    font-size:24px
  }
}
h1,.h1{
  font-family:"proxima-nova",sans-serif;
  font-weight:100;
  line-height:1.166;margin:.66em 0
}
h1 small{
  font-size:50%;
  letter-spacing:3px
}
@media screen and (min-width:300px){
  h1,.h1{
    font-size:2.33em
  }
}
@media screen and (min-width:460px){
  h1,.h1{
    font-size:2.66em
  }
}
@media screen and (min-width:720px){
  h1,.h1{
    font-size:3.33em
  }
}
p{
  color:#616c84;
  margin:.33em 0
}
a.inline{
  &:link,
  &:visited{
    color:#35ff99;
    text-decoration:none;
    border-radius:5px;
    padding:2px 4px
  }
  &:hover,
  &:active{
    background:#35ff99;
    color:#202a39
  }
}
.column-container{
  width:80%;
  max-width:1000px;
  margin:0 auto;
  height:250%;
  text-align:center
}
@media screen and (min-width:300px){
  .column-container{
    padding-top:16%;
    margin-bottom:-125px
  }
}
@media screen and (min-width:720px){
  .column-container{
    padding-top:8%
  }
}
.column{
  width:3%;
  height:100%;
  margin:0 2%;
  display:inline-block
}
.block{
  border-radius:5px;
  margin-bottom:150%
}
.block-1x{
  height:10%
}
.block-2x{
  height:15%
}
.block-3x{
  height:20%
}
.block-blueberry{
  background:#008597
}
.block-slate{
  background:#2d3443
}
.block-grape{
  background:#4d407c
}
.block-raspberry{
  background:#ff005d
}
.block-mango{
  background:#fc0
}
.block-orange{
  background:#ff7c35
}
.block-kiwi{
  background:#35ff99
}
.footer{
  margin-bottom:200px;
}
.floater{
  padding:18px 32px;
  background:#111c2c;
  color:#fff;
  border-radius:64px;
  -webkit-border-radius:64px
}
[data-sr] { visibility: hidden; }
              
            
!

JS

              
                (function($) {
  'use strict';
  var config = {
    reset: true,
    move: '50px',
    mobile: true
  };
  window.sr= new scrollReveal(config);
})();
              
            
!
999px

Console