string AnimationName { get; set; }

robot_2Generated
code_blocksInput

Description

The AnimationName property in the Sandbox.UI.BaseStyles class represents the animation-name CSS property. This property is used to specify the name of the @keyframes animation that should be applied to an element. It allows you to define which animation should be played on the element by referencing the name of the keyframes rule.

Usage

To use the AnimationName property, assign it a string value that corresponds to the name of a defined @keyframes animation. This will apply the specified animation to the element styled by the BaseStyles instance.

Example

// Example of setting the AnimationName property
var styles = new BaseStyles();
styles.AnimationName = "fadeIn"; // Applies the 'fadeIn' animation to the element

// Ensure that the 'fadeIn' animation is defined in your CSS
// @keyframes fadeIn {
//   from { opacity: 0; }
//   to { opacity: 1; }
// }