On browsers with rubber-band scrolling, scrolling beyond the top of the
document leads to undesirable displacement of the image. This fix
prevents scrolling beyond the bounds of the document.
There's a min/max setting in the createAnimator function, maybe that's enough? Personally I think it sometimes can be nice for the animation to continue below 0.
On browsers with rubber-band scrolling, scrolling beyond the top of the document leads to undesirable displacement of the image. This fix prevents scrolling beyond the bounds of the document.