directive designed to trigger animations based on scroll position