jQuery - wait for animation to end then do something

I have been using jQuery for quite some time now. Following a question on one of the many forums and discussions group I visit daily, I found that not many know that jQuery has a built in way to “listen” for an animation to end and then continue work. For instance, if I am using the slideDown effect, I can create a function that will only execute when the slide is finished.

Wish to know how?

Just like that…

js $(‘div.menuOurHotel’).slideDown("slow", function() { $("div.order_form").hide(); }); /js

This is a very useful way to create a responsive intuitive user interface.

Good luck!

<img src="http://feeds.feedburner.com/~r/KensoDev-en/~4/ekkfDQ8Y20k" height="1" width="1"/>
Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at info@tikalk.com