使用animate Flash到jQuery

时间:2012-05-21 01:53:48

标签: jquery flash jquery-ui

我正在将flash design转换为javascript。它的球在屏幕上移动并成为地球仪。我正在使用animate()函数,但它停止了很短的时间段,其中有一个新的animate()函数,所以它与flash动画不相似。对它有任何更好的想法吗?

以下是我如何通过屏幕旋转它:

 .animate({ opacity: 1 },"fast")
.animate({top:'230px', left:'175px'}, {duration:0})
.animate({top:'310px', left:'215px'}, {duration:500})
.animate({top:'360px', left:'237px'}, {duration:500})
.animate({top:'400px', left:'350px'}, {duration:500})

1 个答案:

答案 0 :(得分:1)

我已经完成了这一点,而且当涉及到流畅的动画时,浏览器仍然缺乏这种稳健性。无论如何,你有没有尝试排队动画序列?这样,至少浏览器不会过度使用,你会看到更好的结果吗?这是一个很好的阅读:

http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup

由于