We have an ng-repeat directive which uses ng-hide to do an animated show and hide based on a selected index. The animations work correctly in all browsers except Firefox.
In Firefox the animation for .ng-hide-remove is not working. You can see it move a little bit and stop. I am using Firefox Version 33.0 But I tried with 32.0 as well.
This problem only occurs with Angular 1.3 the same code works in Firefox using angular version 1.2.
Here is the repeat code
<div class="item" ng-repeat="item in items" ng-show="$index == selectedItem" >
Item: {{item}}
</div>
Here are the css styles:
.item {
position:absolute;
top:50px;
left:200px;
border:solid 1px black;
padding:10px;
background-color:#f5f5f5;
width:100px;
}
.item.ng-hide-add {
-webkit-animation: fadeInLeft 1.5s;
animation: fadeInLeft 1.5s;
}
.item.ng-hide-remove {
-webkit-animation: fadeOutRight 1.5s;
animation: fadeOutRight 1.5s;
}
Here is a plunker that contains the full demo: http://plnkr.co/edit/UFI6eWqfnDcCkpIe6d1i?p=preview
Any help would be much appreciated. Am I doing something wrong or is this a real angular bug that I am running into? Thanks!