IntersectionObserverInit Class
The options of an IntersectionObserver (https://w3c.github.io/IntersectionObserver/#dictdef-intersectionobserverinit).
public sealed class IntersectionObserverInitConstructors
| Name | Description |
|---|---|
| IntersectionObserverInit() |
IntersectionObserverInit()
IntersectionObserver.cspublic IntersectionObserverInit()No documentation is available.
Properties
| Name | Description |
|---|---|
| Delay | Gets or sets the minimum delay in milliseconds between the notifications of a target. |
| Root | 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). |
| RootMargin | Gets or sets the offsets applied to the root intersection rectangle: 1 to 4 absolute lengths or percentages, as the CSS margin property. |
| ScrollMargin | Gets or sets the offsets applied to the scrollports between the target and the root: 1 to 4 absolute lengths or percentages. |
| Threshold | Gets or sets the thresholds: a Double or a sequence of Double values between 0 and 1 (0 by default). |
| TrackVisibility | Gets 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; }Property value
See also
RootMargin
IntersectionObserver.csGets 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; }ScrollMargin
IntersectionObserver.csGets 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; }Threshold
IntersectionObserver.csTrackVisibility
IntersectionObserver.csGets or sets whether the observer tracks the visibility of the targets (Intersection Observer V2).
public bool TrackVisibility { get; set; }