/

HTML / CSS / JavaScript Tutorial

CSS Property: animation-name

[this page | pdf | back links]

The CSS (CSS3) animation-name property specifies the name of an animation used in a @keyframes animation.

 

Valid property values (other than inherit and initial) are:

 

Value

Description

keyframename

Specifies name of the keyframe you want to bind to the selector

none

(default value). Indicates no animation

 

Default Value:

none

JavaScript syntax:

e.g. object.style.animationName = "myanimation";

Inherited:

No

Animatable:

No

 

The keyframes format is e.g.:

 

@keyframes myanimation {

    from { starting style }

    to { ending style }

}

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile