Adds CSS classes based on scroll position