The animation property is a shorthand property that is a comma-separated list of animation definitions, each of which combines seven of the animation properties into a single component value.

  • Initial valuesee individual properties
  • Applies toAll elements, :before and :after pseudo elements
  • InheritedSee individual properties
  • MediaVisual
  • Computed valueSee individual properties
  • AnimatableNo
  • CSS VersionCSS3
  • JavaScript
Formal syntax: <single-animation> [ ',' <single-animation> ]* 

animation: [value];
<single-animation> = <single-animation-name> || <time> || <single-animation-timing-function> || <time> || <single-animation-iteration-count> || <single-animation-direction> || <single-animation-fill-mode> || <single-animation-play-state>
.class {
   animation: pulse 4s infinite;

Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.