Skip to main content

Bug Tracker

Side navigation

#6526 closed bug (worksforme)

Opened May 04, 2010 10:22PM UTC

Closed May 05, 2010 02:37AM UTC

Fade Callback on different element

Reported by: path411 Owned by:
Priority: Milestone: 1.4.3
Component: event Version: 1.4.2
Keywords: fade event Cc:
Blocked by: Blocking:
Description

In the following example, both fade events start at the same time. Seems to do with the first fade event including the 2nd.

Is this a bug? If not, any ideas of a work around?

<script type="text/javascript">

function foobar(){

$('.foo').fadeOut(800, function(){

$('#bar').fadeIn(800);

});

}

$(function(){

$('#bar').hide();

$('#go').bind('click',function(){foobar();});

});

</script>

<div id="go">go</div>

<div class="foo">foo</div>

<div id="bar" class="foo">bar</div>

Attachments (0)
Change History (1)

Changed May 05, 2010 02:37AM UTC by dmethvin comment:1

resolution: → worksforme
status: newclosed

Let's continue discussion on the forum.

http://forum.jquery.com/topic/fade-callback-on-elements