CSS animation Property Reference

The CSS animation property is a standard property in CSS Animations. Review its formal syntax, computed behavior, and practical declarations.

CSS animation Property Reference

The CSS animation property is a standard property in CSS Animations. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

animation overview

The CSS animation property is a standard property in CSS Animations. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

animation formal syntax
FieldValue
Formal syntax<single-animation>#
Initial valueanimation-name, animation-duration, animation-timing-function, animation-delay, animation-iteration-count, animation-direction, animation-fill-mode, animation-play-state, animation-timeline
Applies toallElements
InheritedNo
Percentagesno
Computed valueanimation-name, animation-duration, animation-timing-function, animation-delay, animation-direction, animation-iteration-count, animation-fill-mode, animation-play-state, animation-timeline
Animation typenotAnimatable
Mediavisual
Specification groupCSS Animations
StatusStandard

Practical examples

These declarations demonstrate valid ways to set animation. The initial and inherit global keywords remain available even when a property-specific value is preferable.

animation live example
CSS .reset-example { animation: initial; } .inherit-example { animation: inherit; } @supports (animation: fade-in 300ms ease-out both) { .supported { animation: fade-in 300ms ease-out both; } }

Description

The CSS animation property is a standard property in CSS Animations. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: animation
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies