IntersectionObserverInit Class

The options of an IntersectionObserver (https://w3c.github.io/IntersectionObserver/#dictdef-intersectionobserverinit).

public sealed class IntersectionObserverInit

Constructors

NameDescription
IntersectionObserverInit()

IntersectionObserverInit()

IntersectionObserver.cs
public IntersectionObserverInit()

No documentation is available.

Properties

NameDescription
DelayGets or sets the minimum delay in milliseconds between the notifications of a target.
RootGets or sets the intersection root: an Element or a Document, or null for the implicit root (the viewport of the top-level browsing context).
RootMarginGets or sets the offsets applied to the root intersection rectangle: 1 to 4 absolute lengths or percentages, as the CSS margin property.
ScrollMarginGets or sets the offsets applied to the scrollports between the target and the root: 1 to 4 absolute lengths or percentages.
ThresholdGets or sets the thresholds: a Double or a sequence of Double values between 0 and 1 (0 by default).
TrackVisibilityGets or sets whether the observer tracks the visibility of the targets (Intersection Observer V2).

Gets or sets the minimum delay in milliseconds between the notifications of a target.

public int Delay { get; set; }

Gets or sets the intersection root: an Element or a Document, or null for the implicit root (the viewport of the top-level browsing context).

public Node? Root { get; set; }

Gets or sets the offsets applied to the root intersection rectangle: 1 to 4 absolute lengths or percentages, as the CSS margin property.

public string RootMargin { get; set; }

Gets or sets the offsets applied to the scrollports between the target and the root: 1 to 4 absolute lengths or percentages.

public string ScrollMargin { get; set; }

Gets or sets the thresholds: a Double or a sequence of Double values between 0 and 1 (0 by default).

public object? Threshold { get; set; }

Gets or sets whether the observer tracks the visibility of the targets (Intersection Observer V2).

public bool TrackVisibility { get; set; }