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 } }); Previous Post Dynamic Drop down list with Search using html datalist tag Next Post woocommerce “add to cart” button with display variation in dropdown & product quantity on single-product in woocommerce 0 CommentsLeave a Comment Cancel reply