jQuery Visible on Screen

Glenn Blog Leave a Comment

This is a great piece of code that allows you to run a script when an element is physically visible on the screen. The ‘on-screen’ is very important here as most jQuery scripts of this nature will run if the item is present and that could be if it’s not visible in the viewport, or even hidden as display: none. …