When I change a height using jQuery:
jQuery("#a").css("height", "200px");
The css transition works fine... but if I use:
jQuery("#a").css("height", "auto");
The height changes fine, but the transition doesn't happen. What is the reason for that?
css:
#a {
transition: height .5s ease-in-out;
}
Demo: