We have an ng-repeat directive that uses ng-hide to create an animated show and hide based on the selected index. Animation works correctly in all browsers except Firefox.
In Firefox, animations for .ng-hide-remove do not work. You can see how he moves and stops a little. I use 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 retry 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 the plunker that contains the full demo: http://plnkr.co/edit/UFI6eWqfnDcCkpIe6d1i?p=preview
Any help would be greatly appreciated. Am I doing something wrong or is this the real Angular error I am facing? Thanks!
source share