hi.. i'm trying to animate a div expanding and collapsing by animating the css height property with TweenMax
TweenMax.from(testDiv, .35, {css:{height:0}, ease:Cubic.easeOut});
this only animates the background of the div it seems.. not the text that's in it. the text is always visible. here's the div
<div id="testDiv"
style="position: absolute; background-color: rgba(255, 0, 0, .5); width: 320px; height:260px;">
</div>
i've tried jQuery slideDown() and this works hiding and revealing both background and text content
any ideas?
i'd rather use TweenMax for this