Little script that detects if an element is in the viewport and adds a class to it. Check the site for a demo