I always struggle setting up AngularJS animations, either because I don't yet "get it"TM or because the nomenclature is reversed. I'm sure it's the former.
For example, the following CSS works, ie. the element flies in from the left on being shown, and flies back to the left when hidden.
.fly-from-left {
transition:all linear 0.2s;
left:4px
}
.fly-from-left.ng-hide-remove { // this is the start point of the show animation
left: -20px;
}
.fly-from-left.ng-hide { // this is the endpoint of the hide animation
left: -20px;
}
But what I don't get is why the selector responsible for the show animation is called ng-hide-remove. If somebody could illuminate the nomenclature, I'm gonna find setting up animations much easier in future.