1. @keyframes

2개 이상의 애니메이션 중간 상태(프레임)을 지정

.box {
	width: 100px;
	background: tomato;
}

.box:hover {
	animation: ani-name 3s infinite alternate;
}
/* 3s: 3초, infinite: 무한반복, alternate: 반복 방향(반대로) */

@keyframes ani-name {
	0% { 
		legt: 100px;
		background: blue; 
	}
	50% { 
		legt: 200px; 
		background: red; 		
	}
	100% { 
		legt: 300px; 
		background: black; 
	}
}

2. Animation-name, Animation-duration (이름, 지속시간)

3. Animtion-timing-function, Animation-delay (효과, 대기 시간)

[단축속성]

animation: ani-name 1s 2 alternate 0s linear : (이름, 시간, 반복횟수, 반복방향, 대기시간, 효과)

→ 단축속성 사용 시 0s(대기 시간)을 1s(지속시간) 보다 앞에 쓰지 않도록 주의하자.

4. Animation-iteration-count (반복 횟수)

애니메이션 반복 횟수를 설정 (기본 값 : 1)