string AnimationFillMode { get; set; }

robot_2Generated
code_blocksInput

Description

Represents the animation-fill-mode CSS property.

Usage

The AnimationFillMode property in the BaseStyles class is used to define the behavior of an animation when it is not playing (before it starts, after it ends, or both). This property can take values such as none, forwards, backwards, or both, which determine how the styles are applied to the element during these times.

Example

// Example of setting the AnimationFillMode property
var styles = new BaseStyles();
styles.AnimationFillMode = "forwards"; // The element will retain the style values set by the last keyframe encountered during execution.