ngAnimate:理论

ngAnimate:

css3的方式:

ng-enter

ng-enter-active

ng-leave

ng-leave-active

支持的指令:

if,view,repeat,include,switch

repeat:

ng-enter-stagger { // 延时

animation-delay: 100ms

}

另外一套:

ng-hide-add

ng-hide-add-active

ng-hide-remove

ng-hide-remove-active

支持的指令:

class,show,hide,model等

JS方式:

animation()

enter/leave // 对应ng-if

removeClass/addClass // 对应ng-show

你可能感兴趣的:(ngAnimate:理论)