Is there a way to execute a function only when a div
is on the user's screen?
Example, I have a div
that is in the middle of the site and when a user scrolls to it, or reaches it, I want a function to be executed.
Is there any way to do this with AngularJS or Jquery?