Description
The AnimationDelay
property in the BaseStyles
class represents the animation-delay
CSS property. This property specifies the amount of time to wait from applying the animation to an element before beginning to perform the animation. It is defined as a nullable float, allowing for precise control over the delay in seconds.
Usage
To use the AnimationDelay
property, assign a nullable float value representing the delay in seconds. A value of null
indicates that no delay is set, and the animation will start immediately.
Example
BaseStyles styles = new BaseStyles();
styles.AnimationDelay = 2.5f; // Sets a 2.5-second delay before the animation starts.