JQuery – fadeIn(), slideToggle(), slideUp(), animate()

While I am on the JQuery subject, with the previous article for the table game, I have decided to enrich it a little. 🙂

Thus, adding some nice animation functions for JQuery – fadeIn(); slideToggle(); slideUp, animate() and their back functions.

table_game2

What is interesting about these functions? They work pretty well and only the animate() function probably deserves a little more attention, because we may use it in a chain – e.g. in the example I am animating the increasing and the decreasing of the jellyfish as two functions, triggered with the button “Animate”.

Pretty much that is all. Here comes the code:

Enjoy it also in GitHub. 🙂

Tagged with: , ,