Modularize scrolling animation logic. Lots of progress!