Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(window).bind("scroll", function(){
- var div_pos_from_top = $('#nav').offset().top - $(window).scrollTop();
- if (div_pos_from_top < 300) {
- $('#nav').css('... , ...');
- } else {
- $('#nav').css('... , ....');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement