animate method
The Element
interface's animate()
method
is a shortcut method which creates a new Animation
, applies it to the
element, then plays the animation. It returns the created Animation
object instance.
Note: Elements can have multiple animations applied to them. You can get a list of the animations that affect an element by calling
Element.getAnimations
.
Implementation
external Animation animate(
JSObject? keyframes, [
JSAny options,
]);