i'm trying to fadeIn element after first element fadeOut.
i have this in $(document).ready:
---------------------------------------------------------------------
$("a.link").click( function() {
  current = $(".link.current");
  id = $(this).attr('rel');
  next = $("#link_"+id);
  next.addClass('current');
  current.fadeOut('slow', function(){
    next.fadeIn('slow');
  });

  return false;
});
---------------------------------------------------------------------

problem is that next element appears while current element is still
fading out, any idea what i'm doing wrong?

Aljosa Mohorovic

Reply via email to