Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <script src="//cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>

<div class="zqWrap clearfix">
  <ul class="zqUL ">
    <!--first -->
    <li class="zqLI zqLeft">
      <div>
        <!-- first icon -->
        <div class="zqIcon">    </div>
        
        <h4 class="zqH">Zig Zag Scroll</h4>
        <p class="zqP">
          Slanted background slides in on scroll event.
        </p>
      </div>
      <div class="zqLineWrap">
        <div class="zqLine"></div>
      </div>
    </li>
    
    <!-- second -->
    <li class="zqLI zqRight">
      <div>
        <!-- second icon -->
        <div class="zqIcon">
          
        </div>
        <h4 class="zqH">Step Two of Ipusm</h4>
        <p class="zqP">
          When an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
        </p>
      </div>
      <div class="zqLineWrap">
        <div class="zqLine"></div>
      </div>
    </li>
    
    
    <li class="zqLI zqLeft">
      <div>
        
        <div class="zqIcon">
          
        </div>
        <h4 class="zqH">Heading Ipsumite</h4>
        <p class="zqP">
          Give me fish jump attack I don't like that food sleep in the sink, shed everywhere run attack your ankles judging you sleep on your keyboard judging you leap. Judging you meow sunbathe sleep on your keyboard shed everywhere, sunbathe chase the red dot sniff stretching lay down in your way feed me.
        </p>
      </div>
      
      <div class="zqLineWrap">
        <div class="zqLine"></div>
      </div>
    </li>
    
    <!-- fourth -->
    <li class="zqLI zqRight">
      <div>
        <!-- fourth icon -->
        <div class="zqIcon">
          
        </div>
        <h4 class="zqH">Dat cats was here</h4>
        <p class="zqP">
          Eat catnip fluffy fur eat, eat judging you sleep on your face biting shed everywhere stretching.  Give me fish jump attack I don't like that food sleep in the sink, shed everywhere run attack your ankles judging you sleep on your keyboard judging you leap. Judging you meow sunbathe sleep on your keyboard shed everywhere, sunbathe chase the red dot sniff .
        </p>
      </div>
      
      <div class="zqLineWrap">
        <div class="zqLine"></div>
      </div>
    </li>
    
    
    <li class="zqLI zqLeft">
      <div>
        
        <div class="zqIcon">
          
        </div>
        <h4 class="zqH">Unlimited Headings</h4>
        <p class="zqP">
          This can be however long or however short you'd like it to be.
        </p>
      </div>
      
      <div class="zqLineWrap">
        <div class="zqLine"></div>
      </div>
    </li>
    
    <li class="zqLI zqRight">
      <div>
        
        <div class="zqIcon">
          
        </div>
        <h4 class="zqH"> reader coordinator reveiw</h4>
        <p class="zqP">
          Your completed coverage is passed onto our script reader coordinator where they review all three coverages and address any issues with your individual reader.
        </p>
      </div>
      
      <div class="zqLineWrap">
        <div class="zqLine"></div>
      </div>
    </li>
    
    
    <li class="zqLI zqLeft">
      <div>
        
        <div class="zqIcon">
          
        </div>
        <h4 class="zqH"> reader coordinator reveiw</h4>
        <p class="zqP">
          Your completed coverage is passed onto our script reader coordinator where they review all three coverages and address any issues with your individual reader.
        </p>
      </div>
      
      <div class="zqLineWrap">
        <div class="zqLine"></div>
      </div>
    </li>
    
    <li class="zqLI zqRight">
      <div>
        
        <div class="zqIcon">
          
        </div>
        <h4 class="zqH"> reader coordinator reveiw</h4>
        <p class="zqP">
          Your completed coverage is passed onto our script reader coordinator where they review all three coverages and address any issues with your individual reader.
        </p>
      </div>
      
      <div class="zqLineWrap">
        <div class="zqLine"></div>
      </div>
    </li>
    
    
    
    <li class="zqLI zqLeft">
      <div>
        
        <div class="zqIcon">
          
        </div>
        <h4 class="zqH"> reader coordinator reveiw</h4>
        <p class="zqP">
          Your completed coverage is passed onto our script reader coordinator where they review all three coverages and address any issues with your individual reader.
        </p>
      </div>
      
      <div class="zqLineWrap">
        <div class="zqLine"></div>
      </div>
    </li>
    
    <li class="zqLI zqRight">
      <div>
        
        <div class="zqIcon">
          
        </div>
        <h4 class="zqH"> reader coordinator reveiw</h4>
        <p class="zqP">
          Your completed coverage is passed onto our script reader coordinator where they review all three coverages and address any issues with your individual reader.
        </p>
      </div>
      
      <div class="zqLineWrap">
        <div class="zqLine"></div>
      </div>
    </li>
    
    
    
    <li class="zqLI zqLeft">
      <div>
        
        <div class="zqIcon">
          
        </div>
        <h4 class="zqH"> reader coordinator reveiw</h4>
        <p class="zqP">
          Your completed coverage is passed onto our script reader coordinator where they review all three coverages and address any issues with your individual reader.
        </p>
      </div>
      
      <div class="zqLineWrap">
        <div class="zqLine"></div>
      </div>
    </li>
    
    <li class="zqLI zqRight">
      <div>
        
        <div class="zqIcon">
          
        </div>
        <h4 class="zqH">Cat ipsum loranium</h4>
        <p class="zqP">
          Give me fish jump attack I don't like that food sleep in the sink, shed everywhere run attack your ankles judging you sleep on your keyboard judging you leap. Judging you meow sunbathe sleep on your keyboard shed everywhere, sunbathe chase the red dot sniff stretching lay down in your way feed me.
        </p>
      </div>
      
      <div class="zqLineWrap">
        <div class="zqLine"></div>
      </div>
    </li>
    
    <li class="zqLI zqLeft">
      <div>
        
        <div class="zqIcon">
          
        </div>
        <h4 class="zqH"> Another Headline</h4>
        <p class="zqP">
          Cat ipsum dolor sit amet, sun bathe. Catnip climb the curtains meow shed everywhere, bat hairball shed everywhere judging you sunbathe biting tail flick.
        </p>
      </div>
      
      <div class="zqLineWrap">
        <div class="zqLine"></div>
      </div>
    </li>
    
    <li class="zqLI zqRight">
      <div>
        
        <div class="zqIcon">
          
        </div>
        <h4 class="zqH">Another Title</h4>
        <p class="zqP">
          Cat ipsum dolor sit amet, sun bathe. Chase mice. Need to chase tail all of a sudden cat goes crazy sweet beast. Sun bathe chew iPad power cord.
        </p>
      </div>
      
      <div class="zqLineWrap">
        <div class="zqLine"></div>
      </div>
    </li>
    
  </ul>
</div>

            
          
!
            
              .zqWrap {
  overflow:hidden;
  margin: 0;
  opacity:.9999;
  font-family:sans-serif;
}

.zqUL {
  margin:0 auto;
  padding: 0;
  width: 100%;  
  list-style: none;
}

.zqLI {
  position: relative;
  margin:0 auto .1em;
  text-align: center;
  width: 70%; 
  padding:2%;
}

.zqLeft { 
  float: left;
}
.zqRight {
  float: right;  
}

/*line connecting sections*/
.zqLineWrap {
  z-index: -1;
  /*it's rotated so, width is sorta like height*/
  width: 70em;
  height: 2000%;
  /*the lower the top: number, the further down it will move.  Well, technically higher but.  Move it from 800% to 790% and it will move down.  */
  top: -900%;
  margin: 0;
  background: hsl(0,0%,17%);
  position: absolute;  
}

.zqLeft .zqLineWrap {
  transform: rotate(-75deg) translate(60%,0%);
}

.zqRight .zqLineWrap {
  transform: rotate(75deg) translate(-60%,0%);
}

.zqLine {
  opacity: 0;
  width: 100%;
  height: 0;
  background: hsl(0,0%,10%);
  transition: all 1s ease-out;
} 

.zqJS {
  opacity: 1;
  height: 100%;
}

.zqIcon {
  z-index: 2;
  display: inline-block;
  width: 8em;
  height:8em;
  border-radius: 5%;
  background: hsl(140,50%,50%);
  background-size:cover;
  margin-bottom:1em;
}



.zqH { 
  font-size:3vmax;
  color:#27ae60;
}
.zqP {
  font-size:1.5em;
  line-height:1.8;
  color:#fff; 
}

/*you can lower this to 700 and it will still work great.  Just set it to 900 cause, codepen preview.  */
@media (min-width:0px) and (max-width:900px) {
  .zqIcon {
    z-index: 2;
    display: block;
    margin:1em auto;
    padding:0;
  }
  .zqLI {
    position: relative;
    width: 98%;
    margin:0 auto .1em 0;
    text-align: center;
  } 
  .zqLineWrap {
    top: -800%;
  }
  .zqH{
    font-size:3em;
  }
  
}
            
          
!
            
              

var zqLineWrapWidth = $('.zqLineWrap').width();
var allZqLi = $(".zqLI");

$(window).scroll(function(){
  var windowScrollTop = $(window).scrollTop();
  allZqLi.each(function(){
    var zqLiOffsetTop = $(this).offset().top;
    if(windowScrollTop>zqLiOffsetTop-zqLineWrapWidth) {
      $(this).find(".zqLine").addClass("zqJS");
    } else {
      $(this).find(".zqLine").removeClass("zqJS");
    }

  })
});

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console