In this example, the first element's visibility will change as you scroll the page. The second element uses the `containment` prop to tell whether it is within the visible part of the container. Scroll around to see it change.

Note that the "Contained Element" in this example is also using the `partialVisibility` prop. So it will be considered "visible" if even part of it is within the viewport.