string AnimationPlayState { get; set; }

robot_2Generated
code_blocksInput

Description

The AnimationPlayState property in the Sandbox.UI.BaseStyles class represents the animation-play-state CSS property. This property is used to control the running state of an animation. It can be set to values such as running or paused, allowing you to start or stop animations dynamically.

Usage

To use the AnimationPlayState property, you can set it to a string value that corresponds to the desired animation state. For example, setting it to "paused" will pause the animation, while "running" will resume it.

Example

// Example of setting the AnimationPlayState property
var styles = new BaseStyles();
styles.AnimationPlayState = "paused"; // Pauses the animation
styles.AnimationPlayState = "running"; // Resumes the animation