animation-name : 박스모델에 적용될 애니메이션의 이름을 속성값으로 설정
animation-duration : 박스모델에 적용될 애니메이션의 지속시간을 속성값으로 설정
animation-iteration-count : 박스모델에 적용될 애니메이션의 반복횟수를 속성값으로 설정 (속성값 : 정수값 또는 infinite )
animation-direction : 박스모델에 적용될 애니메이션의 진행방향을 속성값으로 설정(속성값 : normal(기본 : 순방향), reverse(역방향), alternate(순방향 <-> 역방향)
, alternate-reverse(역방향 <-> 순방향)
애니메이션 내용 from 시작상태 to 종료상태로 표현
EX1from { top: 0; left: 10px; background: url("images/f1.png") no-repeat center; } to { top: 0; left: 600px; background: url("images/f2.png") no-repeat center; } }
애니메이션 내용 0% ~100%로 표현
EX20% { top: 0; left: 10px; background: url("images/f1.png") no-repeat center; } 25% { top: 0; left: 600px; background: url("images/f2.png") no-repeat center; } 50% { top: 300px; left: 600px; background: url("images/f1.png") no-repeat center; } 75% { top: 300px; left: 10px; background: url("images/f2.png") no-repeat center; } 100% { top: 0; left: 10px; background: url("images/f1.png") no-repeat center; }