javascript - When using scroll Top, if footer disappears, add class to it -


when user scrolls top , footer hides, detect , add class make visible setting position fixed in css class. when footer hide, page blinks, css class added , removed in few milliseconds. how fix page doesn't blink? thank you.

if($(window).scrolltop() + $(window).height() < ($(document).height() - $(selector).outerheight())) {     $(selector).addclass("stickybottom");; } else {     $(selector).removeclass("stickybottom"); } 


Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -