Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function overlapSections() {
- var height = $('.overlap.small').outerHeight();
- var container = $('.overlap-sections');
- var small = $('.overlap.small');
- var big = $('.overlap.big');
- var gap = 90;
- var newHeight = height + gap;
- small.css('height', height + 'px');
- small.css('top', gap / 2 + 'px');
- container.css('height', newHeight + 'px');
- big.css('height', newHeight + 'px');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement