nowUseeMe is a vanilla JavaScript solution for detecting if an element is visible in the browser’s viewport. It also supports window scrolling events.
check if element is visible javascript, js check if element is visible on screen, how to check if an element is visible on the web page
How to make use of it:
Link to necessary JavaScript file:
<script src="js/nowuseeme.js"></script>
Add the CSS ID “here” to any element you want to detect when the page is loaded or when the page is scrolled.
<h2 id="here">Element to track</h2>
check if an element is visible javascript, nowUseeMe Plugin/Github
See Demo And Download
Official Website(asathoor): Click Here
This superior jQuery/javascript plugin is developed by asathoor. For extra advanced usage, please go to the official website.