--- title: animation-name slug: Web/CSS/animation-name tags: - CSS - CSS Animations - CSS Property - Experimental - Reference translation_of: Web/CSS/animation-name ---
animation-name
属性指定应用的一系列动画,每个名称代表一个由{{cssxref("@keyframes")}}定义的动画序列。/* Single animation */
animation-name: none;
animation-name: test_05;
animation-name: -specific;
animation-name: sliding-vertically;
/* Multiple animations */
animation-name: test1, animation4;
animation-name: none, -moz-specific, sliding;
/* Global values */
animation-name: initial
animation-name: inherit
animation-name: unset
使用简写属性{{cssxref("animation")}}可以很方便地同时设置所有的动画属性。
{{cssinfo}}
none
IDENT
See CSS animations for examples.
Specification | Status | Comment |
---|---|---|
{{SpecName('CSS3 Animations', '#animation-name', 'animation-name')}} | {{Spec2('CSS3 Animations')}} |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}}{{property_prefix("-webkit")}} | {{CompatGeckoDesktop("5.0")}}{{property_prefix("-moz")}} {{CompatGeckoDesktop("16.0")}} |
10 | 12 {{property_prefix("-o")}} 12.10 # |
4.0{{property_prefix("-webkit")}} |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}}{{property_prefix("-webkit")}} | {{CompatGeckoMobile("5.0")}}{{property_prefix("-moz")}} {{CompatGeckoMobile("16.0")}} |
10 | {{CompatUnknown}} | {{CompatUnknown}} |