# Component Methods - [this.$element\('id'\).animate\(Object, Object\)](#en-us_topic_0000001058670837_section844805134319) After a component is assigned the **id** attribute, you can use the ID to obtain the component objects and call functions.
Creates and runs an animation shortcut on the component. Specify the keyframes and options required for the animation. This method returns the animation object. |
Array of objects used to set animation style attributes. For details about style attributes, see Style attributes. |
Time curve of the animation. For details about the supported types, see Available values of the easing attribute. |
|||
Delay for the animation start. The default value indicates no delay. |
|||
Number of times the animation will be played. number indicates a fixed number of playback operations, and Infinity indicates an unlimited number of playback operations. |
|||
Start and end styles of the animation none: No style is applied to the target before or after the animation is executed. forwards: The target keeps the state at the end of the animation (defined in the last key frame) after the animation is executed. |