Please removing ‘height: 100%’ from my html and body tags.

$(window).scroll(function() {
var sh = $(window).scrollTop();
console.log(sh);
if ( sh > 700 ) {
$(‘#top img’).fadeIn(); //hide
} else {
$(‘#top img’).fadeOut(); //show
}
});

0 Comments

Leave a Comment