animation-name
< css | properties
animation-name
This page has been flagged with the following issues:
High-level issues:
Content:
Summary
Defines one or more animations that apply to an element
Overview table
| Initial value | none
|
|---|---|
| Applies to | all elements |
| Inherited | No |
| Media | visual |
| Computed value | as specified |
| Animatable | No |
| CSS Object Model Property |
|
Syntax
-
animation-name: single-animation-name
Values
- single-animation-name
- The name of an @keyframes rule or the keyword
none(default).
Examples
CSS
h1 {
animation-duration: 3s;
animation-name: slidein;
}
@keyframes slidein {
from {
margin-left: 100%;
width: 300%
}
to {
margin-left: 0%;
width: 100%;
}
}
Usage
The animation-name property accepts the name of one or more animations defined in @keyframes rules, and applies the animation(s) to the selected element. Multiple values should be separated by commas.
For an animation to run, you must also specify a value for animation-duration.
Syntax
animation-name: none | identifier [ , none | identifier ] *
Standards information
- CSS Animations Module Level 3, Section 3.2
Compatibility
Desktop
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic Support | 4.0 -webkit |
16.0 5.0 -moz |
10.0 | 12.10 12.0 -o |
3.1 -webkit
|
Mobile
| Feature | Android | BlackBerry | Chrome for mobile | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Opera Mini | Safari Mobile |
|---|---|---|---|---|---|---|---|---|
| Basic Support | 2.1 -webkit |
7.0 -webkit |
18.0 -webkit |
16.0 15.0 -moz |
WP 8 (IE 10) | 12.1 | Unsupported | 3.2 -webkit
|
Compatibility notes
| Browser | Version | Note |
|---|---|---|
| Internet Explorer | 10.0 | The -ms- prefix property is deprecated and should not be used. |
See also
Related articles
Animation
- animation-name
Related pages (MSDN)
CSSStyleDeclarationcurrentStylestyleaabbracronymbbdobigbrcitecodedfnemiimginputkbdlabelqsampselectsmallspanstrongsubsuptextAreattvaraddressblockQuotedivdlfieldSetformnoFramesnoScriptolppretableuldddtlitBodytdtFootthtHeadtrbuttondelinsmapobjectscriptms-fill@keyframes
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]
This tool helps to make and review comments inline.
How to Use
insert instructions, with images, here