JSFiddle - React, Tailwind, and code Playground
HTML
<br>
<br><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<img src="https://image.ibb.co/eQFRx7/post_2852_0_65714800_1522594854_thumb.png" alt="image"/>
<br>
<br>
<br>
<br>
<div style="background:#333;height:300px">
<p>
The footer
</p>
</div>
CSS
img{position:fixed;left:10px;top:10%}
JavaScript
window.onscroll = function(ev) {
if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight) {
alert("you're at the bottom of the page");
}
};