Script that receives an element and tracks its scroll progress.