Represents the animation-duration
CSS property.
Represents the animation-duration
CSS property.
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 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