<title>CSS3 Animation</title>
background-color: orange;
-webkit-animation-name: movingPara;
-webkit-animation-duration: 2s;
-webkit-animation-iteration-count: 4;
animation-name: movingPara;
animation-iteration-count: 4;
@-webkit-keyframes movingPara {
from { transform: rotate(-45deg); }
to { transform: rotate(45deg); }
from { transform: rotate(-45deg); }
to { transform: rotate(45deg); }
-webkit-animation-direction: alternate;
animation-direction: alternate;
<h1>animation-direction 속성값 - alternate</h1>
<div id="forward">오른쪽으로 도는 원</div>
<div id="alter">오뚜기같은 원</div>