Properties

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

This section describes the properties associated with the Intersection Observer API.

In this section

TopicDescription

root

The root element to use for intersection.

rootMargin

The margin around the intersection root.

time

Returns a DOMHighResTimeStamp that corresponds to the time the intersection was recorded.

rootBounds

Returns a DOMRectReadOnly for the intersection observer's root.

boundingClientRect

Returns a DOMRectReadOnly for the intersection observer's target.

intersectionRect

Returns a DOMRectReadOnly for the portion of the target visible within the root intersection rectangle.

intersectionRatio

Ratio of intersectionRect area to boundingClientRect area.

target

The Element whose interaction with the intersection root changed.

thresholds

A list of thresholds where each threshold is a ratio of intersection area to bounding box area of an observed target.

 

 

 

Show: