@keyframes는 어떤 모습에서 어떤 모습으로 변할 지를 설정
@keyframes name {
from(or 0%){. . .} //시작할 때 시점
n%{. . .} //중간 시점
to(or 100%){. . .} //마지막 시점
}
@keyframes name {
from(or 0%){. . .} //시작할 때 시점
from(or 25%){. . .}
from(or 50%){. . .}
from(or 75%){. . .}
to(or 100%){. . .} //마지막 시점
}
@keyframes getBigger {
from(or 0%){
width: 0;
left: 0;
}
to(or 100%){
width: 100px;
left: 100px;
}
}
div{
margin: 30px auto;
background-color: orange;
animation-name: getBigger;
animation-duration: 4s;
animation-timing-function: linear;
animation-delay: 0s;
animation-iteration-count: 1;
animation-direction: normal;
animation-fill-mode: forwards;
animation-play-state: running;
}