According to this answer we can animate max-height property, however for some reason an animation isn't applied to max-height property specified like this (see plunker):
.animated-div {
  overflow: hidden;
  background: lightblue;
  opacity:1;
  height:500px;
}
.animated-div.ng-hide-add.ng-hide-add-active,
.animated-div.ng-hide-remove.ng-hide-remove-active {
  transition:all linear 0.5s;
}
.animated-div.ng-hide {
  height:0;
  opacity:0;
}
Yet if I change max-height to height it works well. What's the problem?
 
     
    