Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2020.
The CSSAnimation interface of the Web Animations API represents an Animation object.
EventTarget Animation CSSAnimationThis interface inherits properties from its parent, Animation.
CSSAnimation.animationName Read onlyReturns the animation name as a string.
This interface inherits methods from its parent, Animation.
The animation in the following example is defined in CSS with the name slide-in. Calling Element.getAnimations() returns an array of all Animation objects. In our case this returns a CSSAnimation object, representing the animation created in CSS.
| CSS Animations Level 2 # the-CSSAnimation-interface |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Mar 30, 2023 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.