how to smooth jquery animations

前端 未结 4 1483
走了就别回头了
走了就别回头了 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:42

    Is it the change in speed that you're describing?

    That is because the animations have the same timings but the distance the square box is covering differs. You might need to alter the time for each animation dependant in the distance travelled.

提交回复
热议问题