animation 적용법
<style>
animation-name: move1;
animation-duration: 1s;
animation-delay: 1s;
animation-timing-function: ease-out;
animation-iteration-count: infinite;
animation-iteration-count: 4;
animation-direction: normal;
animation-direction: reverse;
animation-direction: alternate;
animation-direction: alternate-reverse;
animation-fill-mode: backwards;
animation-fill-mode: forwards;
축약형 작성법 ex) 순서에 상관없이 작성, 두 번째 나오는 s(초)는 대기시간으로 생략 가능
animation: move1 2s .5s forwards cubic-bezier(.27,-0.32,.84,1.25) 3 alternate;
</style>
keyframe 작성법
ex)
<style>
@keyframes move1{
from{
width:100px; backgroud-color: #000;}
to{
width:200px; backgroud-color: #999;}
}
@keyframes move1{
0%{
width:100px; backgroud-color: #000;}
100%{
width:200px; backgroud-color: #999;}
}
</style>
요소:hover 할 때 애니메이션을 멈추는법
<style>
animation-play-state: paused;
</style>