Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(scrollTop>589)
- {
- //Pinned
- $('header.header, .logo').css('position','fixed');
- $('header.header').css('z-index','9999');
- $('.logo').css('cssText', 'top: 10px !important; z-index:999999999999;position:fixed;');
- $('section, #ops').css('padding-top','160px');
- $('section.blog').css('margin-top','0px');
- $('section.blog').css('padding-top','160px');
- }
- if(scrollTop<590)
- {
- //Unpinned
- $('header.header').css('position','relative');
- $('.logo').css('position','absolute');
- $('header.header').redraw();
- $('header.header').css('z-index','999999');
- $('.logo').css('cssText', 'top: auto !important; z-index:999999999999;position:absolute;');
- $('section, #ops').css('padding-top','0px');
- $('section.blog').css('margin-top','-200px');
- $('section.blog').css('padding-top','200px');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement