I was having the same issue and what I found is that the documentation left off the critical piece as mentioned by tasseKATT.
I would caution using the approach that was selected as the correct answer. This changes things in a place outside of what Angular knows about so it can lead to improper behavior.
Put your transition code in the following class:
.barGraphDiv.ng-hide-add.ng-hide-add-active,
.barGraphDiv.ng-hide-remove.ng-hide-remove-active {
-webkit-transition: all linear 5s;
transition: all linear 5s;
}
And then in your app, be sure to inject ngAnimate
. This lets angular know to add these classes on ng-show and ng-hide and to wait for the specified time in the CSS before removing them.