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 when using the `containment` prop, checking for visibility it means "fully visible". So even you scroll such that the sensor is partly outside the viewport, it will change to "hidden".