Check if element is visible after scrolling

Simple Utility Function This will allow you to call a utility function that accepts the element you’re looking for and if you want the element to be fully in view or partially.

First add the prototype function:

And then the check function:

And now bind when to run this function:

 

That’s all folks!

Based on an stackoverflow answer