|
Post by Tumble on Aug 3, 2015 5:29:24 GMT -5
<script> $(window).scroll(function(){ $('#fixedmore').hide(); var distanceTop = $('#last').offset().top - $(window).height(); if ($(window).scrollTop() < distanceTop){ $('#fixedmore').fadeIn(3000); }
else{ $('#fixedmore').hide(); };
}); </script> this at the top <div id="fixedmore" style="color:white;"><img src="http://image.png">hello there</div>
This at the bottom <div id="last"></div>
http://webdesignerwall.com/tutorials/animated-scroll-to-top
|
|