Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var win_height = $(window).height(), scroll_pos = win_height + $(window).scrollTop();
- $('window').on('scroll' , function(){
- if(win_height < scroll_pos) {
- $('#containerPages').css({'position' : 'fixed' });
- } else {
- $('#containerPages').css({'position' : 'static' });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement