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

              
                <html>
  <head>
    <link href="https://fonts.googleapis.com/css?family=Crimson+Text|Montserrat" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/smooth-scrollbar/7.3.1/smooth-scrollbar.css" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/smooth-scrollbar/7.3.1/smooth-scrollbar.js">
    </script>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.5.1/dat.gui.min.js"></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.5.0/prism.min.js" data-manual></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.5.0/components/prism-javascript.min.js"></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.5.0/components/prism-markup.min.js"></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.5.0/components/prism-bash.min.js"></script>
  </head>
  <body>
  
  <scrollbar id="myScrollbar" >
  <article class="scroll-content">
    <div class="row">

      <section class="hero col-md-12">
        <nav>
          <a class="logo" href="#"></a>
          <ul class="list-unstyled ">
            <li><span class="animation-underline-ltr light">ABOUT</span></li>
            <li><span class="animation-underline-ltr light">PROJECTS</span></li>    
            <li><span class="animation-underline-ltr light">CONTACTS</span></li>
          </ul>
       </nav>
        <h1 class="glitch">Hero Headline</h1>
        <div class=" text-center center-block clearfix">
          <br />
          <!-- button class="btn btn-default btn-lg ">CALL TO ACTION</button -->
        </div> 
        <div class="line-s-down-container" style="opacity: 1;">
          <div class="line-s-down"></div>
        </div>
      </section> 
    </div>  
    <section class="container"> 
      <div class="row reveal"> 
        <div class="image-box col-md-8"> 
          <img  src="https://d13yacurqjgara.cloudfront.net/users/34797/screenshots/2752373/ux-fun-caracters-02.png" />
        </div>
        <article class="text-container col-md-4">

          <h2 class="">Headline text lorem ipsum</h2>
          <p>
            Cras justo odio, dapibus ac facilisis in, egestas eget quam. Etiam porta sem malesuada magna mollis euismod. Aenean            lacinia bibendum nulla sed consectetur. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
          <article>
            <span class="animation-underline-ltr">LINK</span>
          </article>
          </p>

        </article>
      </div>

    <div class="row reveal"> 
      <article class="text-container col-md-4">

          <h2 class="">Headline text lorem ipsum</h2>
          <p>
            Cras justo odio, dapibus ac facilisis in, egestas eget quam. Etiam porta sem malesuada magna mollis euismod. Aenean            lacinia bibendum nulla sed consectetur. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
          <article>
            <span class="animation-underline-ltr">LINK</span>
          </article>
          </p>

        </article>
      <div class="image-box col-md-8"> 
        <img  src="http://static.zoommyapp.com/full/74905.jpg" />
      </div>
    </div>

    <div class="row reveal"> 
      <div class="image-box col-md-8"> 
        <img  src="https://d13yacurqjgara.cloudfront.net/users/34797/screenshots/2834097/attachments/582455/triangolino_04.png" />
      </div>
      <article class="text-container col-md-4">

          <h2 class="">Headline text lorem ipsum</h2>
          <p>
            Cras justo odio, dapibus ac facilisis in, egestas eget quam. Etiam porta sem malesuada magna mollis euismod. Aenean            lacinia bibendum nulla sed consectetur. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
          <article>
            <span class="animation-underline-ltr">LINK</span>
          </article>
          </p>

        </article>
    </div>

    </section>
      
    </article>
      <aside class="scrollbar-track scrollbar-track-x">
        <div class="scrollbar-thumb scrollbar-thumb-x"></div>
    </aside>
    <aside class="scrollbar-track scrollbar-track-y">
        <div class="scrollbar-thumb scrollbar-thumb-y"></div>
    </aside>
  </scrollbar>
  </body>
</html>
              
            
!

CSS

              
                // VARS
@normalScale:1;
@hoverScale:1.1;
@navColor:#fff;

// LAYOUT
body {
  background-color:#ededed;
}

nav {
  margin:20px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .logo {
    color:#fff;
    font-size:14px;
    font-weight:bold;
    text-transform:uppercase;
    text-decoration:none;
    margin:10px 10px 10px 10px;
  }
  ul {
    display:flex;
    justify-content:flex-end;
    li {
      font-family: 'Montserrat', sans-serif;
      letter-spacing:0.1em;
      font-weight:normal;
      cursor:pointer;
      text-align:right;
      font-size:14px;
      color:@navColor;
      display:flex;
      flex-direction:center;      
      margin:0px 10px;
    }
  }
}

section.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow:hidden;
  display:block;
  clear:both;
  h1 {
    opacity:0;
    position:relative;
    font-family: 'Montserrat', sans-serif;
    top:30%;
    margin:0 auto;
    text-align:center;
    font-weight:bold;
    font-size:60px;
    color: #fff;// #3796C6;
  }
  button {
    background-color:#fff;
    color:#282828;
    font-size:16px;
  }
}
.reveal {
  position:relative;
}
.text-container {
    display:block;
    position: relative;
  	//top: 50%;
	  //transform: translateY(-25%);
  	//transform: translateX(-3%);
    padding-top:45px;
    h2 {
      font-weight:bold;
      font-size:40px;
    }
    p {
       font-family: 'Crimson Text', serif;
    }
    span {
      color:#282828;
    }
  }
.image-box {
  pading:100px 0px;
  margin:50px 0px;
  float:left;
  overflow:hidden;
  -webkit-transition: all 7.9s cubic-bezier(0,.71,.41,1);
          transition: all 7.9s cubic-bezier(0,.71,.41,1);
  img {
    width:100%;
    -webkit-transform: scale(@normalScale);
            transform: scale(@normalScale);
    -webkit-transition: all .9s cubic-bezier(0,.71,.41,1);
            transition: all .9s cubic-bezier(0,.71,.41,1);
    &:hover {
      -webkit-transform: scale(@hoverScale);
              transform: scale(@hoverScale); 
      -webkit-transition: all 7.9s cubic-bezier(0,.71,.41,1);
              transition: all 7.9s cubic-bezier(0,.71,.41,1);
    }
 }
}
// anim undeline left to right
.animation-underline-ltr {
    position: relative;
    &:after,
    &:before {
      content: '';
      position: absolute;
      bottom: 0;
      height: 1px;
      width: 0;
      background-color: #282828;
      pointer-events: none
    }
    &.light:after,
    &.light:before {
      content: '';
      position: absolute;
      bottom: 0;
      height: 1px;
      width: 0;
      background-color: @navColor;
      pointer-events: none
    }
    &:before {
      left: 0;
      -webkit-transition: width 0s cubic-bezier(.42, .12, .31, .99);
      transition: width 0s cubic-bezier(.42, .12, .31, .99);
    }
    &:after {
     right: 0;
     -webkit-transition: width .4s cubic-bezier(.42, .12, .31, .99);
     transition: width .4s cubic-bezier(.42, .12, .31, .99)
    }
    &:hover:before {
      width: 100%;
      -webkit-transition: width .4s cubic-bezier(.42, .12, .31, .99);
      transition: width .4s cubic-bezier(.42, .12, .31, .99)
    }
    &:hover:after {
      width: 100%;
      background: 0 0;
      .transitionsAll();
      -webkit-transition: all 0s cubic-bezier(.42, .12, .31, .99);
      transition: all 0s cubic-bezier(.42, .12, .31, .99)
    }
}
.line-s-down-container {
    position: absolute;
    width: 1px;
    height: 50px;
    bottom: 20px;
    // margin:0 auto;
    left: calc(50vw - 1px);
    overflow: hidden;
    z-index: 999;
    color:#485A96;
}
.line-s-down {
    position: absolute;
    width: 1px;
    height: 50px;
    top: 0;
    left: 0;
    background: #fff;
    -webkit-animation: yoyoHeight 2s infinite; /* Safari 4.0 - 8.0 */
            animation: yoyoHeight 2s infinite;
}

/* Safari 4.0 - 8.0 */
@keyframes yoyoHeight {
    0% {
      top:-50px;
      .transitionsAll();
    }
    25% {
      top:100%;
      .transitionsAll();
    }
    100% {
      top:50px;
      .transitionsAll();
    }
}
@-webkit-keyframes yoyoHeight {
    0% {
      top:-50px;
      .transitionsAll();
    }
    25% {
      top:100%;
      .transitionsAll();
    }
    100% {
      top:50px;
      .transitionsAll();
    }
}

.transitionsAll() {
  -webkit-transition: all 2s cubic-bezier(.19,1,.22,1);
  -moz-transition: all 2s cubic-bezier(.19,1,.22,1);
  transition: all 2s cubic-bezier(.19,1,.22,1);
}

.glitch {
  font-size: 100px;
  line-height: 1;
  font-weight: 700;
  position:absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  text-decoration: none;
  color: #fff;
  &:before,
  &:after{
    display: block;
    content: 'Hero Headline';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: .8;
  }
  &:after {
    color: #f0f;
    z-index: -2;
  }
  &:before {
    color: #0ff;
    z-index: -1;
  }
  &:hover {
    &:before {
      animation: glitch-left .3s cubic-bezier(.25, .46, .45, .94) both infinite
    }
    &:after {
      animation: glitch-left-2 .3s cubic-bezier(.25, .46, .45, .94) reverse both infinite
    }
  }
 }
@keyframes glitch-small {
    0% {
        transform: translate(0)
    }
    33% {
        transform: translate(2px, 1px)
    }
    66% {
        transform: translate(-1px, -1px)
    }
    to {
        transform: translate(0)
    }
}
@keyframes glitch-medium {
    0% {
        transform: translate(0)
    }
    20% {
        transform: translate(-2px, 2px)
    }
    40% {
        transform: translate(-2px, -2px)
    }
    60% {
        transform: translate(2px, 2px)
    }
    80% {
        transform: translate(2px, -2px)
    }
    to {
        transform: translate(0)
    }
}
@keyframes glitch-left {
    0% {
        transform: translate(0)
    }
    33% {
        transform: translate(-5px, 3px)
    }
    66% {
        transform: translate(5px, -3px)
    }
    to {
        transform: translate(0)
    }
}
@keyframes glitch-left-2 {
    0% {
        transform: translate(0)
    }
    33% {
        transform: translate(-5px, -3px)
    }
    66% {
        transform: translate(5px, 2px)
    }
    to {
        transform: translate(0)
    }
}
              
            
!

JS

              
                const options = {
  speed: 1,
  dumping: 0.1,
  //overscrollDamping: 0.2,
  //thumbMinSize: 20,
  renderByPixels: true,
  //continuousScrolling: 'auto',
  overscrollEffect: 'bounce'
}

//Scrollbar.init(document.getElementById('myScrollbar'), options);
//Scrollbar.init(document.getElementById('myScrollbar'));

var goScrollRevealAnim = {
    mobile   : 'false',
    delay    : 200,
    duration: 1500,
    reset    : 'true',
    //easing   : 'cubic-bezier( 0.6, 0.2, 0.1, 1)',
    easing :'cubic-bezier(.19,1,.22,1)',
    opacity  : 1,
    //    useDelay: 'always',
//    scale: .9,
   // distance: '40px'
  };

  window.sr = ScrollReveal();
  // claim
  sr.reveal('.reveal', goScrollRevealAnim);

var $hero = $('.hero > h1');
// Create a timeline
var tl = new TimelineLite();
// Sequence multiple tweens
tl.to($hero, .4, {alpha:1})
 // .to($hero, 1, {minHeight:'190vh'});
              
            
!
999px

Console