Bug Tracker

Opened 13 years ago

Closed 13 years ago

#6526 closed bug (worksforme)

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>

Change History (1)

comment:1 Changed 13 years ago by dmethvin

Resolution: worksforme
Status: newclosed

Let's continue discussion on the forum. http://forum.jquery.com/topic/fade-callback-on-elements

Note: See TracTickets for help on using tickets.