how to smooth jquery animations

前端 未结 4 1492
走了就别回头了
走了就别回头了 2020-12-17 05:19

I would like to smooth the chaining of some jquery.animate functions.

Here is a jsfiddle where I describe the problem : http://jsfiddle.net/xavier_seignard/KTxbb/4/<

4条回答
  •  [愿得一人]
    2020-12-17 05:47

    You can change the speed for a more "fine" animation, you see that stop because the speed it's too fast and different size to cover:

    function initPage() {
        $.each(json, function() {
            $("#point").animate({
                left: this.x,
                top: this.y
            },
            1000, 'linear');
        });
    }​
    

提交回复
热议问题