X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

Style animationName Property

Style Object Reference Style Object

Example

Changing the animationName property of a <div> element:

document.getElementById("myDIV").style.animationName="myNEWmove";

Try it yourself »


Definition and Usage

The animationName property sets or returns a name for the @keyframes animation.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The animationName property is supported in Internet Explorer 10, Firefox, and Opera.

Safari and Chrome support an alternative, the WebkitAnimationName property.

Note: The animationName property is not supported in Internet Explorer 9 and earlier versions.


Syntax

Return the animationName property:

object.style.animationName

Set the animationName property:

object.style.animationName="none|keyframename|initial|inherit"

Property Values

Value Description
none Default value. Specifies that there will be no animation (can be used to override animations coming from the cascade)
keyframename Specifies the name of the keyframe you want to bind to the selector
initial Sets this property to its default value. Read about initial
inherit Inherits this property from its parent element. Read about inherit

Technical Details

Default Value: none
Return Value: A String, representing the animation-name property of an element
CSS Version CSS3


Related Pages

CSS reference: animation-name property


Style Object Reference Style Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook