isInViewport.js is an ultra-light jQuery plugin that tells you if the element is in the viewport, but with a twist. It lets you select a visible element(s) using the :in-viewport selector or by calling the .isInViewport() method on the element(s).
:in-viewport
.isInViewport()
Website Demo