animation-play-state 속성
<style> div { width: 300px; height: 100px; line-height:100px; text-align:center; color:white; background: red; position: relative; -webkit-animation: homzzang 3s; /* Safari 4.0 - 8.0 */ -webkit-animation-fill-mode: forwards; /* Safari 4.0 - 8.0 */ animation: homzzang 3s; animation-play-state: paused; } /* Safari 4.0 - 8.0 */ @-webkit-keyframes homzzang { from {top: 0px;} to {top: 200px; background-color: blue;} } @keyframes homzzang { from {top: 0px;} to {top: 200px; background-color: blue;} } </style> <div>홈짱닷컴 Homzzang.com</div> 결과보기
<style>
div {
width: 300px;
height: 100px;
line-height:100px;
text-align:center;
color:white;
background: red;
position: relative;
-webkit-animation: homzzang 3s; /* Safari 4.0 - 8.0 */
-webkit-animation-fill-mode: forwards; /* Safari 4.0 - 8.0 */
animation: homzzang 3s;
animation-play-state: paused;
}
/* Safari 4.0 - 8.0 */
@-webkit-keyframes homzzang {
from {top: 0px;}
to {top: 200px; background-color: blue;}
@keyframes homzzang {
</style>
<div>홈짱닷컴 Homzzang.com</div>
결과보기