Advertisement
developerjustin

Untitled

Feb 11th, 2014
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.86 KB | None | 0 0
  1.                 if(scrollTop>589)
  2.                 {  
  3.                     //Pinned
  4.                     $('header.header, .logo').css('position','fixed');
  5.                     $('header.header').css('z-index','9999');
  6.                     $('.logo').css('cssText', 'top: 10px !important; z-index:999999999999;position:fixed;');
  7.                     $('section, #ops').css('padding-top','160px');
  8.                     $('section.blog').css('margin-top','0px');
  9.                     $('section.blog').css('padding-top','160px');                  
  10.                 }
  11.                 if(scrollTop<590)
  12.                 {
  13.                     //Unpinned
  14.                     $('header.header').css('position','relative');
  15.                     $('.logo').css('position','absolute');
  16.                     $('header.header').redraw();
  17.                     $('header.header').css('z-index','999999');
  18.                     $('.logo').css('cssText', 'top: auto !important; z-index:999999999999;position:absolute;');
  19.                     $('section, #ops').css('padding-top','0px');
  20.                     $('section.blog').css('margin-top','-200px');
  21.                     $('section.blog').css('padding-top','200px');
  22.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement