Example of ngAnimate for smoothly sorting an ng-repeat?
问题 I would like to see a functional example of using angular-animate (1.2x) to sort a list. (I have only come across broken fiddles etc on the interwebs): An ng-repeat given an array [A,B,C] and later [C, B, A] should: Move A to the bottom Move C to the top Keep B's position (Using CSS absolute top positioning or similar.) An example using staggering (transition-delay) is a bonus. 回答1: The problem Achieving what you want can be a bit tricky. A common attempt is to use ng-style to calculate the