Advertisement
Guest User

Untitled

a guest
Apr 17th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function overlapSections() {
  2.         var height = $('.overlap.small').outerHeight();
  3.         var container = $('.overlap-sections');
  4.         var small = $('.overlap.small');
  5.         var big = $('.overlap.big');
  6.         var gap = 90;
  7.         var newHeight = height + gap;
  8.  
  9.         small.css('height', height + 'px');
  10.         small.css('top', gap / 2 + 'px');
  11.         container.css('height', newHeight + 'px');
  12.         big.css('height', newHeight + 'px');
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement