[jQuery] Re: Jquery Newbie needing help..

2009-09-16 Thread Karl Swedberg
If the animations are acting on the same element(s), you can just chain them and they'll occur sequentially. Also, just to be safe, I'd make sure the image isn't currently animated before triggering the fades: $(document).ready(function() { $('img.twitter').click(function() { if (!$(t

[jQuery] Re: Jquery Newbie needing help..

2009-09-16 Thread amuhlou
A couple things.. 1. The click function can't be used to fadeIn the image again... because you wouldn't be able to click on it when it's hidden 2. Do you want a single click to cause the fadeOut-fadeIn-fadeOut- fadeIn? If so, you could use the callback functions of the fadeIn and fadeOut transit