I have these two things happen in my jQuery-animated website:
$('#myFirstDiv').animate({top: "15%"}, 3000);
$('#mySecondDiv').animate({bottom: "15%"}, 3000);
These two animations seem to happen one after another, rather than simultaneously. There's a slight delay before the second one plays, about one tenth of a second. I want to make them occur simultaneously.
I tried this:
$('#myFirstDiv').animate({top: "15%"}, 3000);
$('#mySecondDiv').animate({bottom: "15%"}, {duration:3000, queue: false});
but it's probably wrong.
I would appreciate advice on how to do this correctly.