Keyframe Class

A keyframe (https://drafts.csswg.org/web-animations-1/#dictdef-basekeyframe): its offset, easing function, composite operation and property values.

public class Keyframe

Constructors

NameDescription
Keyframe()

Keyframe()

Keyframes.cs
public Keyframe()

No documentation is available.

Properties

NameDescription
CompositeGets the composite operation of the values of the keyframe.
EasingGets the easing function applied from this keyframe to the next one.
OffsetGets the offset of the keyframe, in [0, 1], or null to space the keyframes evenly.
PropertiesGets the property values of the keyframe, by CSS property name (e.g. margin-left or --custom).

Composite

Keyframes.cs

Gets the composite operation of the values of the keyframe.

public CompositeOperationOrAuto Composite { get; init; }

Gets the easing function applied from this keyframe to the next one.

public string Easing { get; init; }

Gets the offset of the keyframe, in [0, 1], or null to space the keyframes evenly.

public double? Offset { get; init; }

Properties

Keyframes.cs

Gets the property values of the keyframe, by CSS property name (e.g. margin-left or --custom).

public IDictionary<string, string> Properties { get; init; }