How to call function when animation is finished in jquery

08 May 2014, 06:46 AM

Register the callback method when creating animation. see the example below

 $(this).animate({
           width: 100
       }, 500, function () { 
                      alert('done');
              }
       );

this example shows alert message when animation is finished.

Related Contents

15 May 2014, 08:07 AM
C#, LINQ, List
15 May 2014, 07:54 AM
C#, LINQ, List
29 Apr 2014, 03:07 AM
C#, Generic
29 Apr 2014, 02:51 AM
C#, Generic
About
Explain how to call method when the animation is completed in jquery

Date Posted 08 May 2014, 06:41 AM
Author Brainy Solutions
Views 935
;