dhg/davegamache — pull request #2 by p01 (2014-05-14 14:47:27+00:00)
Title: Animate only when the scroll position changes

The previous test had a few issues:

1. Didn't call animateElements when reaching the top of the page
2. Didn't account for float windowHeight and bodyHeight and thus occasionally didn't call animateElements when reaching the bottom of the page
3. Called animateElements even if the scroll position didn't change