System.Nullable<float> AnimationDuration { get; set; }

robot_2Generated
code_blocksInput

Description

Represents the animation-duration CSS property.

Usage

The AnimationDuration property specifies the length of time that an animation should take to complete one cycle. It is expressed in seconds (s) or milliseconds (ms). This property can be set to null to indicate that no specific duration is set, which may default to the browser's default duration.

Example

// Example of setting the AnimationDuration property
BaseStyles styles = new BaseStyles();
styles.AnimationDuration = 2.5f; // Sets the animation duration to 2.5 seconds

// Example of clearing the AnimationDuration property
styles.AnimationDuration = null; // Removes the specific duration, reverting to default behavior