Jquery animate when another animation is in progress

后端 未结 4 1670
星月不相逢
星月不相逢 2021-01-20 15:57

I\'m using a simple easing animation given here using JQUERY EASING PLUGIN
i.e.easing a div from left:200 to left:0 and back.(last example on above page)

I have

4条回答
  •  情书的邮戳
    2021-01-20 16:57

    You can add a callback to the animate function :

    $('#div1').animate(
     { left: 0 },
     { duration: 'slow', easing: 'easeOutBack' },
     function(){
        //Do what you want in here, it will be executed once the animation above is completed.
    )};
    

提交回复
热议问题