how to use animation with ng-repeat in angularjs

前端 未结 4 871
一生所求
一生所求 2020-12-08 14:00

I have a list which I iterate over by using ng-repeat: and the user can interact with thte list items by using up-arrow and down-arrow icons and on click of them i simply ch

4条回答
  •  一生所求
    2020-12-08 14:46

    Complementing the last answer, there is the ng-move class for animations when order is changed:

    li {
        opacity: 1;
    }
    li.ng-move {
        -webkit-transition: 1s;
        transition: 1s;
        opacity: 0;
    }
    li.ng-move-active {
        opacity: 1;
    }
    

    Last documentation here.

提交回复
热议问题