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

              
                <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>

              
            
!

CSS

              
                .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;
  }
  
}
              
            
!

JS

              
                

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

Console