Answers
为什么要用贝塞尔曲线?
如果你想知道,我可以告诉你,那个是三阶贝塞尔曲线,只不过只能移动其中的两个控制点,可以参考
http://www.cnblogs.com/jay-dong/archive/2012/09/26/2704188.html
CSS3标准写法,就不屑兼容性代码了。
<!DOCTYPE html>
<html>
<head>
<style>
div {
width:100px;
height:100px;
background:red;
position:relative;
animation:mymove 9s infinite;
}
@keyframes mymove
{
0% {top:0px;}
33.3% {top:100px;}
66.7% {top:100px}
100% {top:300px;}
}
</style>
</head>
<body>
<div></div>
</body>
</html>