--- title: animation-duration slug: Web/CSS/animation-duration tags: - CSS - CSS Animations - CSS Property - Experimental - Reference translation_of: Web/CSS/animation-duration ---
animation-duration
属性指定一个动画周期的时长。
默认值为0s,表示无动画。
使用简写属性{{cssxref("animation")}}很方便地同时设置所有的动画属性。
{{cssinfo}}
Formal syntax: {{csssyntax("animation-duration")}}
animation-duration: 6s animation-duration: 120ms animation-duration: 1s, 15s animation-duration: 10s, 30s, 230ms
<time>
See CSS animations for examples.
Specification | Status | Comment |
---|---|---|
{{ SpecName('CSS3 Animations', '#animation-duration', 'animation-duration') }} | {{ Spec2('CSS3 Animations') }} |