There seems to be an issue with animating two elements simultaneously using max-height. The transition always occurs one after the other, with one element completing its transition before the other starts.
setTimeout(function () {
$(".b").css("max-height", "500px");
}, 500);
setTimeout(function () {
$(".b").css("max-height", "0");
$(".c").css("max-height", "500px");
}, 2000);
Click here to see this phenomenon in action on js bin
Any assistance in resolving this mystery would be greatly appreciated.