--- title: animation-duration slug: Web/CSS/animation-duration tags: - CSS 애니메이션 translation_of: Web/CSS/animation-duration browser-compat: css.properties.animation-duration ---
animation-duration
CSS 속성은 애니메이션이 한 사이클을 완료하는 데 걸리는 시간을 지정합니다.
/* Single animation */ animation-duration: 6s; animation-duration: 120ms; /* Multiple animations */ animation-duration: 1.64s, 15.22s; animation-duration: 10s, 35s, 230ms;
축약 속성 {{ cssxref("animation") }}를 사용하여 모든 애니메이션 속성을 한꺼번에 설정하는 것이 편리합니다.
{{cssinfo}}
{{cssxref("<time>")}}
Note: 음수 값은 유효하지 않으므로 선언이 무시됩니다. 접두사가 붙은 구현은 그것들을 0과 동일하게 간주 할 수 있습니다.
Note: animation- * 속성에 여러 개의 쉼표로 구분 된 값을 지정하면 {{cssxref ( "animation-name")}} 속성에 지정된 애니메이션에 얼마나 많은 값이 있는지에 따라 다른 방식으로 지정됩니다. 자세한 내용은 Setting multiple animation property values를 참조하십시오.
CSS 애니메이션 예제를 참조하십시오.
Specification | Status | Comment |
---|---|---|
{{ SpecName('CSS3 Animations', '#animation-duration', 'animation-duration') }} | {{ Spec2('CSS3 Animations') }} | Initial definition. |
{{Compat}}