IntersectionObserverEntry Class
A change of the intersection of a target with the root of an observer (https://w3c.github.io/IntersectionObserver/#intersection-observer-entry).
public sealed class IntersectionObserverEntryConstructors
| Name | Description |
|---|---|
| IntersectionObserverEntry(IntersectionObserverEntryInit) | Creates an entry from its values. |
IntersectionObserverEntry(IntersectionObserverEntryInit)
IntersectionObserver.csCreates an entry from its values.
public IntersectionObserverEntry(IntersectionObserverEntryInit intersectionObserverEntryInit)Parameters
intersectionObserverEntryInitIntersectionObserverEntryInit- The values of the entry.
See also
Properties
| Name | Description |
|---|---|
| BoundingClientRect | Gets the bounding box of the target (see Element.GetBoundingClientRect). |
| IntersectionRatio | Gets the ratio of the intersection area to the area of the bounding box of the target. |
| IntersectionRect | Gets the part of the bounding box of the target that intersects the root intersection rectangle, after the clipping by its ancestors. |
| IsIntersecting | Gets whether the target intersects the root (the edge-adjacent and zero-area intersections included). |
| IsVisible | Gets whether the target is visible (only computed when the observer tracks the visibility). |
| RootBounds | Gets the root intersection rectangle for a same-origin-domain target, else null. |
| Target | Gets the observed element. |
| Time | Gets the time at which the intersection was recorded, relative to the time origin of the global object of the observer. |
BoundingClientRect
IntersectionObserver.csGets the bounding box of the target (see Element.GetBoundingClientRect).
public DomRectReadOnly BoundingClientRect { get; }IntersectionRatio
IntersectionObserver.csGets the ratio of the intersection area to the area of the bounding box of the target.
public double IntersectionRatio { get; }IntersectionRect
IntersectionObserver.csGets the part of the bounding box of the target that intersects the root intersection rectangle, after the clipping by its ancestors.
public DomRectReadOnly IntersectionRect { get; }IsIntersecting
IntersectionObserver.csGets whether the target intersects the root (the edge-adjacent and zero-area intersections included).
public bool IsIntersecting { get; }IsVisible
IntersectionObserver.csGets whether the target is visible (only computed when the observer tracks the visibility).
public bool IsVisible { get; }Property value
See also
RootBounds
IntersectionObserver.csGets the root intersection rectangle for a same-origin-domain target, else null.
public DomRectReadOnly? RootBounds { get; }Target
IntersectionObserver.csGets the time at which the intersection was recorded, relative to the time origin of the global object of the observer.
public double Time { get; }