i know that we can two jquery animate function in parallel like this way
$(function () {
$("#first").animate({
width: '200px'
}, { duration: 200, queue: false });
$("#second").animate({
width: '600px'
}, { duration: 200, queue: false });
});
but my situation is bit different. i have one button and one div whose opacity is set to zero. so div is invisible. i want when a user will click a button then a div will be create dynamically and placed at center. center div size will increase gradually.
so when dynamic div will be placed at center then i need to append my invisible div inside the dynamic div. now i want to increase dynamic div size with animate function and as well as i want to set opacity 1 to invisible child div. so i want these two animation should run parallel.
because when dynamic div resizing will be completed then child div's opacity will also reach at 1. guide me with a small sample how to achieve it.
here is my js fiddle link http://jsfiddle.net/tridip/3jrt48s4/
which anyone can see and understand how i want to animate two div in parallel and those two div's name as follows "UPSContainer", "UPS_rate_time" thanks