61
rated 0 times
[
64]
[
3]
/ answers: 1 / hits: 49024
/ 11 Years ago, sat, september 21, 2013, 12:00:00
I want to get an alert when, while scrolling, my footer comes to view.
$(window).on(mousewheel, function(){
if ($(window).scrollTop() + $(window).height() > $('#footer').position().top){
alert(footer visible);
}
else{
alert(footer invisible);
}
});
All conditions with height seem right, but not during scrolling.
More From » jquery