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

              
                #intro 
  h1 TEXT MOVEMENT<br/><b>SCROLL BLUR</b>
  h2 Scroll fast and slooooooooowww
  a(href="https://codepen.io/igcorreia/pen/pJvOpL",target="_blank") Visit also Mouse Cursor motion blur
  
.wrapper
  -for (var x = 0; x < 30; x++)
   .box 
     -for (var y = 0; y < 10; y++)
      .lorem Collaboratively administrate empowered markets via plug-and-play networks. Dynamically procrastinate B2C users after installed base benefits. Dramatically visualize customer directed convergence without revolutionary ROI. <br/> <br/> Efficiently unleash cross-media information without cross-media value. Quickly maximize timely deliverables for real-time schemas. Dramatically maintain clicks-and-mortar solutions without functional solutions.<br/><br/>Completely synergize resource sucking relationships via premier niche markets. Professionally cultivate one-to-one customer service with robust ideas. Dynamically innovate resource-leveling customer service for state of the art customer service.

#copy <a href="https://twitter.com/igcorreia" target="_blank">Crafted by: <b>@igcorreia</b></a>
              
            
!

CSS

              
                @link: #898989;
@transition: all 0.3s ease-in-out 0s;
@linkhover: #fff;
@iterations: 30;
* {
  cursor: default;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
/* Let's get this party started */

::-webkit-scrollbar {
  width: 6px;
  margin: 10px;
  padding: 10px;
}
/* Track */

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(000, 000, 000, 0.2);
  background: #222;
  -webkit-border-radius: 0;
  border-radius: 0;
}
/* Handle */

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  -webkit-box-shadow: inset 0 0 6px rgba(120, 120, 120, 0.5);
  width: 2px;
  padding: 10px;
  margin: 10px;
}

::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(255, 255, 255, 0.1);
  -webkit-box-shadow: inset 0 0 6px rgba(120, 120, 120, 0.2);
  width: 2px;
  padding: 10px;
  margin: 10px;
}

html {
  font-family: 'Lato', sans-serif;
  background: #262626;
  height: 100%;
  min-height: 100%;
  width: 100%;
  overflow: hidden;
  body {
    background: #262626;
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100%;
    width: 100%;
    .wrapper {
      width: 300px;
      height: 40%;
      background: #262626;
      position: absolute;
      left: 50%;
      top: 100%;
      transform: translate(-50%, -150%);
      overflow: hidden;
      border: 1px #000 solid;
      box-shadow: 0 0 100px #000, 0 0 1px rgba(255, 255, 255, 0.5) inset;
      .box {
        color: #fff;
        overflow-y: scroll;
        position: absolute;
        height: 100%;
        opacity: 0;
        .lorem {
          padding: 15px 30px;
          line-height: 22px;
          color: #A6A6A6;
        }
      }
    }
  }
}

#intro {
  position: relative;
  font-size: 20px;
  font-weight: 100;
  text-align: center;
  float: none;
  display: block;
  width: 100%;
  color: #767676;
  cursor: none;
  padding-top: 80px;
  //text-shadow: 0 1px 0 #fff;
  text-transform: uppercase;
  .select {
    margin-top: 20px;
    position: relative;
    z-index: 999999;
    span {
      color: #FF5E3A;
      font-weight: 400;
      padding: 0 20px;
      position: relative;
      letter-spacing: 1px;
    }
  }
  a {
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 11px;
    text-shadow: none;
    margin-top: 20px;
    display: block;
    text-shadow: 0 1px 0 #000;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    z-index: 9999;
  }
  h1 {
    margin: 0;
    padding: 0;
    color: #eee;
    font-weight: 100;
    letter-spacing: 10px;
    font-size: 120%;
    b {
      font-size: 260%;
      letter-spacing: -0.4px;
      font-weight: 700;
      display: block;
      overflow-y: hidden;
      text-shadow: 10px 0 106px rgba(255, 255, 255, 0.96), -10px 0 106px rgba(255, 255, 255, 0.96), 0 0 20px rgba(255, 255, 255, 1), 0 0 5px rgba(255, 255, 255, 1);
      overflow-x: visible;
      height: 45px;
      line-height: 42px;
      margin-top: 10px;
      box-shadow: 0 0 50px 20px rgba(0, 0, 0, 0.07);
    }
  }
  h2 {
    margin: 10px 0 0 0;
    padding: 0;
    color: #999;
    font-size: 80%;
    font-weight: 300;
  }
}

#copy {
  position: absolute;
  bottom: 0;
  height: 40px;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  line-height: 14px;
  font-size: 10px;
  font-weight: 400;
  z-index: 999;
  a {
    color: @link;
    text-decoration: none;
    transition: @transition;
    cursor: pointer;
    b {
      font-weight: 700;
    }
    &:hover {
      color: @linkhover
    }
  }
}
              
            
!

JS

              
                /* 
* I will keep publishing examples to help push the web foward.
* PLEASE Like, Heart or Share if you like, and don't forget to follow. 
* Thanks.
*
* Now let's animate it :)
*/

var $box = $('.box'),
  $allButLastBox = $('.box:not(:last-child)'),
  inter = 30,
  speed = 0;

//On Move
$(function() {

  var scrollTime = 1.2;
  var scrollDistance = 650;

  $box.last().on("mousewheel DOMMouseScroll", function(event) {
    event.preventDefault();
    event.stopPropagation();

    var delta = event.originalEvent.wheelDelta / 120 || -event.originalEvent.detail / 3;
    var scrollTop = $box.last().scrollTop();
    var finalScroll = scrollTop - parseInt(delta * scrollDistance);

    animScroll();

    $allButLastBox.each(function(index, val) {
      TweenLite.to($(this), scrollTime, {
        scrollTo: {
          y: finalScroll,
          autoKill: true
        },
        ease: Power2.easeOut,
        overwrite: 5,
        delay: 0 + (index / 1600)
      });
    })

    TweenMax.to($box.last(), scrollTime, {
      scrollTo: {
        y: finalScroll,
        autoKill: true
      },
      ease: Power2.easeOut,
      onComplete: stoppedScroll,
      overwrite: 5
    });
  }).mousedown(function(event) {
      event.preventDefault();
      event.stopPropagation();
    
      var scrollTop = $box.last().scrollTop();
      stoppedScroll();
    
    
    $allButLastBox.each(function(index, val) {
      TweenLite.set($(this), {
        scrollTo: {
          y: scrollTop,
          autoKill: true
        },
        ease: Power2.easeOut,
        overwrite: 5,
        delay: 0 + (index / 1600)
      });
    })
    
  });

  stoppedScroll();

  TweenMax.set($box.last(), {
    autoAlpha: 1,
    delay: 0
  });
});

function stoppedScroll() {
  $allButLastBox.each(function(index, val) {
    TweenMax.set($(this), {
      autoAlpha: 0,
      delay: 0
    });
  });
}

function animScroll() {
  $allButLastBox.each(function(index, val) {
    TweenMax.set($(this), {
      autoAlpha: 0.001 + (0.010 * index),
      delay: 0
    });
  });
}
              
            
!
999px

Console