Tutorials

CSS 'animation-name' Property Explained

  • Published
  • 1 min read
  • CSS
  • HTML
  • Web Design
CSS 'animation-name' Property
In this article
  1. CSS 'animation-name' Property Examples
  2. Browser Support For 'animation-name' Property
  3. CSS Syntax of the 'animation-name' Property
  4. Usage of the 'animation-name' Property
  5. Property Values of the 'animation-name' Property

Corrected . The browser-support table was rebuilt from MDN browser-compat-data (unprefixed support, desktop browsers), checked 3 October 2026. Editorial approval is still pending.

The CSS 'animation-name' property defines the name of the @keyframes animation that should be applied to an element. This property links the element with a set of styled animation steps defined within the @keyframes rule, specifying how an element should animate between styles.

CSS 'animation-name' Property Examples

See the Pen CSS 'animation-name' Property by Webzstore (@webzstore) on CodePen.

The 'animation-name' property is a foundational aspect of CSS animations, connecting HTML elements with the stylized animations defined in @keyframes. Developers can create visually dynamic and interactive web pages by specifying the name of an animation.

Browser Support For 'animation-name' Property

Unprefixed support for the animation-name property (selected supported implementation, desktop browsers)
BrowserVersionReleased
Chrome43May 2015
Edge12Jul 2015
Firefox16Oct 2012
Safari9Sep 2015
Opera30Jun 2015

Source: MDN browser-compat-data 8.1.4, checked 3 October 2026. Prefixed support and implementations that were later removed are not counted, and some browsers list partial support or extra values. See the MDN reference for animation-name for the full compatibility details, including mobile browsers.

CSS Syntax of the 'animation-name' Property

animation-name: none | <keyframes-name>;

Usage of the 'animation-name' Property

Use 'animation-name' when applying a predefined @keyframes animation to an element. This is the first step in setting up CSS animations, as it establishes which set of keyframes (i.e., steps or stages) the animation should follow. It's beneficial for applying complex animations that involve multiple style changes over time.

Property Values of the 'animation-name' Property

  • None: The default value. Indicates that no animation should be applied.
  • <keyframes-name>: The name of a @keyframes animation that defines the stages of the animation. This name is used to link the element to the corresponding @keyframes rule where the animation is defined.

Share this article

Written by

Webzstore Team

Webzstore has helped businesses since 2010. Today, we bring websites, digital marketing and enquiry follow-up into practical plans built around the work each business needs.

Related services

Talk about your website or marketing

Book a Free 30-Minute Call

More tutorials

All tutorials

Privacy choices

Choose what this website may load. Your choice is saved on this device for up to 180 days. Privacy Policy

Turning a choice off stops further use of that optional service on this site. It does not take back information already sent, and we cannot delete cookies that other services set in your browser.