How to execute ui change right after jquery.effect event?

I have a bounce effect in my jquery ui. During the bounce there is a color change, is there any way I can set the color back to normal right after the bounce finish?

  $(div).effect("bounce", { times:2 }, 200);

Is there any event handler in jQuery related to animate or effect?


The documentation on effect shows that it is called as follows:

effect( effect, [options], [speed], [callback] )

So, you can simply pass a function to the callback parameter and that will run once the effect completes.

Need Your Help

Placing a control over a mapview iOS 7 using storyboards

ios uibutton mkmapview uistoryboard

I'm trying to place a button over a mapview. In storyboard I have it as the last control in the view hierarchy, the map view still covers it up. I've tried adding this line in my viewDidLoad method...