SnapEventInit Class

https://drafts.csswg.org/css-scroll-snap-2/#dictdef-snapeventinit

public sealed class SnapEventInit : EventInit
Inheritance
EventInit SnapEventInit

Constructors

NameDescription
SnapEventInit()

SnapEventInit()

public SnapEventInit()

No documentation is available.

Properties

NameDescription
SnapTargetBlockGets the snap target in the block axis.
SnapTargetInlineGets the snap target in the inline axis.

SnapTargetBlock

SnapEvent.cs

Gets the snap target in the block axis.

public Node? SnapTargetBlock { get; init; }

SnapTargetInline

SnapEvent.cs

Gets the snap target in the inline axis.

public Node? SnapTargetInline { get; init; }