animate's callback function (complete) executed at start?

后端 未结 8 2106
渐次进展
渐次进展 2020-12-15 03:07

I\'m using jQuery 1.5.1 This is my code:

$(\'.cellcontent\').animate({
   left: \'-=190\'}, {
   easing: alert(\'start ani\'),
   duration: 5000,
   complete         


        
8条回答
  •  悲&欢浪女
    2020-12-15 03:55

    from the jquery docs:

    $( "#clickme" ).click(function() {
      $( "#book" ).animate({
        opacity: 0.25,
       left: "+=50",
        height: "toggle"
      }, 5000, function() {
        // Animation complete.
      });
    });
    

提交回复
热议问题