Don't queue fadeTo(), fadeIn()/fadeOut()

Hosh Sadiq picture Hosh Sadiq · Jul 10, 2011 · Viewed 9.1k times · Source

I have the following animations:

$('#id').animate({'margin-top': 100, 'margin-left': 100}, {queue: false, duration: 1000});
$('#id2').fadeTo(1000, 1);

this seems to be queuing, how can i make sure that fadeTo() doesn't queue?

Answer

Liam Bailey picture Liam Bailey · Jul 10, 2011

Try:

$('#id2').stop().fadeTo(1000, 1);