Monitor the scroll percentage of a component inside the viewport, using the IntersectionObserver API.