small jquery script. Easy to do. Animate -


i have script.

$("#menu li a.nieuwsbriefaanmelden").click(function()                 {                     $("#nieuwsbrief").slidedown(600);                     $("#nieuwsbrief form").fadein(600);                 }); 

how can change script. script first slidedown. , when slidedown done, fadein. slideshow , fadein effect. start same time.

thanks

every animation function in jquery supports callback function second argument fired once animation complete. thus, can chain animations have them execute 1 after another:

$("#menu li a.nieuwsbriefaanmelden").click(function() {     $("#nieuwsbrief").slidedown(600, function() {;          $("#nieuwsbrief form").fadein(600);      }); }); 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -