animate()
Introduction
Use animate() to set a CSS Animation on UI elements.
Syntax
Parameter
keyframes
- An array consisting of objects that contain properties and values of multiple keyframes.
- Assign a timing-function for each keyframe to control the animation's speed.
options
An object that contains one or more properties:
Note:
If no name is specified, a unique id is generated incrementally.
Return Value
Returns an Animation object.
The Animation object has the following methods:
Example
Animation Event
The events for the animate() API are the same as the animation events for CSS animations.
See also
Compatibility
LCD tables only load in the browser