#div {
position: absolute; top: 50px;
width: 100px; height: 100px; background: blue;
-webkit-animation-name: shift;
-webkit-animation-duration: 10s;
-webkit-animation-iteration-count: 2;
-webkit-animation-direction: reverse;
}
@-webkit-keyframes shift{
from{
top: 50px;
left: 0px;
}
20% {
top: 150px;
left: 100px;
}
to {
top: 400px;
left: 300px;
}
}
http://jsfiddle.net/uVv65/2/ 爲什麼反向動畫方向是一樣的正常?我認爲它會從CSS-動畫/動畫方向/反向
top: 400px;
left: 300px;
去
top: 50px;
left: 0px;