I currently have multiple DIVs nested within a wrapper-DIV
<div id="wrapper">
<div id="inner_1"></div>
<div id="inner_2"></div>
<div id="inner_3"></div>
</div>
Each inner-DIV has its own unique height. When I use fadeIn/fadeOut() to show/hide the inner DIVs, the height of the wrapper changes abruptly from small (inner_1) to large (inner_2) in order to accommodate the displayed inner-DIVs.
Is there an easy way to animate the height of the wrapper-DIV so that it smoothly adjusts to fit the height of the inner-DIV?
For reference, here is a link to an example: https://jsfiddle.net/a3wvxcuq/#