I have been trying out ‘ngFx’ Animations library with Ionic and it works perfect. My situation is I want to apply animations to items in a list on enter and leave (item by item). At the moment , Animation is aplied to list as a whole.
For example, If I apply fade In animations in list created with ng-repeat using timeout , the whole list fades in and not item by item.
Hi, Thanks for the fast response @mhartington . Still something is wrong with my code. The multidimensional array structure with objects makes things go wrong.
Hi @mhartington . Thanks a lot for the effort but this doesn’t solve my problem . I have a multi dimensional array - $scope.cards= [ [ {},{} ] ,[ {},{} ] ];
And on the template : nested ng-repeat
I have this structure to create rows with different number of columns.
For example,
row0- col 0, col1
row1-col0
Is there some way to achieve the same animation effect on this structure?
@mhartington Thanks for that CSS solution, perfect for my needs!
I just wanted to ask a question, any input would be great from any of the brainy guys around.
Would one typically always prefer CSS based animations over JS? From my understanding CSS animations are less computationally expensive and produce better results on mobiles, is this true or not necessarily?