animation-duration 예제
<style>
div {
width: 100px;
height: 100px;
background: blue;
position: relative;
-webkit-animation: homzzang infinite; /* Safari 4.0 - 8.0 */
-webkit-animation-duration: 3s; /* Safari 4.0 - 8.0 */
animation: homzzang infinite;
animation-duration: 5s;
}
/* Safari 4.0 - 8.0 */
@-webkit-keyframes homzzang {
from {top: 0px;}
to {top: 200px;}
}
@keyframes homzzang {
from {top: 0px;}
to {top: 200px;}
}
</style>
<div></div>
결과보기