O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

animation-name

Values:

none | IDENT [, none | IDENT ]*

Initial value:

none

Applies to:

Block-level and inline-level elements

Inherited:

No

Computed value:

Same as declared value

Description:

Defines the declared name(s) of CSS animation(s). Each IDENT refers to a CSS animation keyframe at-rule. If an IDENT has not been declared or the keyword none is supplied, the animation is not run regardless of the values of any other animation properties. For example, given animation-name: 'bounce', none, 'jumper'; and that the animation name jumper has not been defined, the first animation will run but the second and third will not.

Examples:

html {animation-name: 'turn', 'slide', none;}
h2 {animation-name: 'flip';}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required