Trigger events at various stages as selected elements scroll into and out of the viewport