The second line will not wait for the first line to finish fading. To have the second line execute after the fade, you put it in the callback of fadeTo().
$(this).parent().parent().siblings().stop().fadeTo('slow',0.3, function () { $('.popdir').hide('fast'); }); On Feb 12, 11:10 am, "Rodrigo C." <rodrigo...@gmail.com> wrote: > A pretty basic question, if I have this construct: > > $('#img').hover( > function() { > > $(this).parent().parent().siblings().stop().fadeTo('slow',0.3); > $('.popdir').hide('fast'); > $('.popdir', $(this).parent().parent()).show(500); > } > ) > > will the 3 lines inside the function be executed simultaneously or > serially? Will the second line wait for the animation in the first one > to end before running?