2

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?

GManz
  • 1,548
  • 2
  • 21
  • 42
  • 1
    It is not queueing for me: http://jsfiddle.net/fkling/Z8Rs3/ Both animations are started at the same time. Or do you mean that *repeated* calling of these animations queue? – Felix Kling Jul 10 '11 at 11:59

2 Answers2

8

Try:

$('#id2').stop().fadeTo(1000, 1);
Liam Bailey
  • 5,879
  • 3
  • 34
  • 46
-2

Move the opacity change into the animation.

$('#id').css({opacity:0}).show().animate({marginTop: 100, marginLeft: 100, opacity:1}, 1000);

http://jsfiddle.net/vcBPR/

sod
  • 3,804
  • 5
  • 22
  • 28