KeyframeAnimationOptions Class

The options of Element.Animate (https://drafts.csswg.org/web-animations-1/#dictdef-keyframeanimationoptions).

public sealed class KeyframeAnimationOptions : KeyframeEffectOptions
Inheritance
KeyframeEffectOptions KeyframeAnimationOptions

Constructors

NameDescription
KeyframeAnimationOptions()

KeyframeAnimationOptions()

Element.Animations.cs
public KeyframeAnimationOptions()

No documentation is available.

Properties

NameDescription
IdGets the identifier of the animation.
RangeEndGets the end of the animation attachment range (https://drafts.csswg.org/web-animations-2/#dom-keyframeanimationoptions-rangeend): "normal", an animation-range-end value, a TimelineRangeOffset or an offset.
RangeStartGets the start of the animation attachment range (https://drafts.csswg.org/web-animations-2/#dom-keyframeanimationoptions-rangestart): "normal", an animation-range-start value, a TimelineRangeOffset or an offset.
TimelineGets the timeline of the animation (null for no timeline); the default timeline of the document when not set.

Gets the identifier of the animation.

public string Id { get; init; }

Gets the end of the animation attachment range (https://drafts.csswg.org/web-animations-2/#dom-keyframeanimationoptions-rangeend): "normal", an animation-range-end value, a TimelineRangeOffset or an offset.

public TimelineRangeValue RangeEnd { get; init; }

Gets the start of the animation attachment range (https://drafts.csswg.org/web-animations-2/#dom-keyframeanimationoptions-rangestart): "normal", an animation-range-start value, a TimelineRangeOffset or an offset.

public TimelineRangeValue RangeStart { get; init; }

Gets the timeline of the animation (null for no timeline); the default timeline of the document when not set.

public AnimationTimeline? Timeline { get; init; }