disable nganimate for some elements
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm using the ngAnimate module, but all my ng-if , ng-show , etc, are affected by that, I want to leverage ngAnimate for some selected elements. For performance and some bugs in elements that shows and hide very speedy. thanks. 回答1: Just add this to your CSS. It is best if it is the last rule: . no - animate { - webkit - transition : none ! important ; transition : none ! important ; } then add no-animate to the class of element you want to disable. Example: 回答2: If you want to enable animations for specific elements (as opposed to