I have a div set to a dynamic height called option.height using AngularJS's ng-style attribute.
<div class="rec" ng-style="{ 'height': option.height, 'background-color': option.color}"></div>
When the page is loaded, the height may be set to anything from 0px to 300px, depending on earlier user input. While this works, I want the div height to animate from 0px to whatever value option.height is using CSS animations, instead of just starting at the correct height. Is this possible? How should I approach this?