Element.animate() - Web APIs | MDN
The interface's method is a shortcut method which creates a new , applies it to the element, then plays the animation. It returns the created object instance. Note: Elements can have multiple animations applied to them. You can get a list of the animations that affect an element by callingElement.getAnimations() .
https://developer.mozilla.org/en-US/docs/Web/API/Element/animate