IntersectionObserverEntry interface of the Intersection Observer API describes the intersection between the target element and its root container at a specific moment of transition. Instances of
IntersectionObserverEntry are delivered to an
IntersectionObserver callback in its
entries parameter; otherwise, these objects can only be obtained by calling
- Returns the bounds rectangle of the target element as a
DOMRectReadOnly. The bounds are computed as described in the documentation for
- Returns the ratio of the
- Returns a
DOMRectReadOnlyrepresenting the target's visible area.
- A Boolean value which is
trueif the target element intersects with the intersection observer's root. If this is
true, then, the
IntersectionObserverEntrydescribes a transition into a state of intersection; if it's
false, then you know the transition is from intersecting to not-intersecting.
- Returns a
DOMRectReadOnlyfor the intersection observer's root.
Elementwhose intersection with the root changed.
DOMHighResTimeStampindicating the time at which the intersection was recorded, relative to the
IntersectionObserver's time origin.
This interface has no methods.
The definition of 'IntersectionObserverEntry' in that specification.
|Working Draft||Initial definition|
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.