animation-timing-function 예제
<style>
div {
width: 300px;
height: 100px;
line-height:100px;
text-align:center;
color:white;
background: red;
position: relative;
-webkit-animation: homzzang 5s infinite; /* Safari 4.0 - 8.0 */
-webkit-animation-timing-function: linear; /* Safari 4.0 - 8.0 */
animation: homzzang 5s infinite;
animation-timing-function: linear;
}
/* Safari 4.0 - 8.0 */
@-webkit-keyframes homzzang {
from {left: 0px;}
to {left: 200px;}
}
@keyframes homzzang {
from {left: 0px;}
to {left: 200px;}
}
</style>
<div>홈짱닷컴 Homzzang.com</div>
결과보기