바뀌는 요소에 지정
ease-in, ease-out, ease-in-out, cubic-bezier()
transition: font-size 2500ms ease-in 1000ms, background-color 1000ms ease-out 1200ms;
3; 5; infinite;
reverse;
로 설정하면 to에서 from으로 돌아감.alternate;
로 설정하면 from - to - from - to... 순으로 진행.@keyframes name {
from {
/* Rules */
}
to {
/* Rules */
}
}
혹은 from, to 대신 %를 써도 됨.
@keyframes name {
10% {
/* Rules */
}
90% {
/* Rules */
}
}