I have an app that uses Angular 1.5, and I'm using ngAnimate and animate.css to handle simple animations. I'm running into an issue where I need to animate a child element and ng-enter/leave is applied to its parent via ng-if.
Here is my markup:
<div class="parent" ng-if="vm.showPanel">
<div class="child animated"> <!--This is the element that need the animation-->
some content
</div>
</div>
Here is the css:
.parent.ng-enter > div.child{
animation: bounceInRight 1s;
}
.parent.ng-leave > div.child{
animation: bounceOutRight 1s;
}
If I apply the animation to the parent element it works just fine, but I need it in that child element. Any suggestions?? I know this must be something pretty straight forward but I'm not sure what I'm missing. Thanks in advance fellas.
ng-animate-children="true"? - plong0