inViewport is a simple jquery plugin to test if an element is visible on the screen, usage : $("#element").inViewport();