IntersectionObserverEntry

external interface IntersectionObserverEntry(source)

Properties

Link copied to clipboard

Returns the bounds rectangle of the target element as a DOMRectReadOnly. The bounds are computed as described in the documentation for Element.getBoundingClientRect().

Link copied to clipboard

Returns the ratio of the intersectionRect to the boundingClientRect.

Link copied to clipboard

Returns a DOMRectReadOnly representing the target's visible area.

Link copied to clipboard
abstract val isIntersecting: Boolean

A Boolean value which is true if the target element intersects with the intersection observer's root. If this is true, then, the IntersectionObserverEntry describes a transition into a state of intersection; if it's false, then you know the transition is from intersecting to not-intersecting.

Link copied to clipboard

Returns a DOMRectReadOnly for the intersection observer's root.

Link copied to clipboard
abstract val target: Element

The Element whose intersection with the root changed.

Link copied to clipboard
abstract val time: Double

A DOMHighResTimeStamp indicating the time at which the intersection was recorded, relative to the IntersectionObserver's time origin.