jQuery Animation Speed?

前端 未结 4 2199
执念已碎
执念已碎 2020-12-15 20:13

Final Edit: The wall of text below can be summed up by simply asking \"can I specify the speed of animations using jQuery\'s animate()? All th

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-15 21:00

    something like this??

    demo

    $('#a,#b').animate({left: '250px'}, 1000, 'linear',
        function(){
           $('#b').animate({left: '500px'}, 1000, 'linear');   
        }
    );
    

提交回复
热议问题