during ng-animate of views, “leaving” view still takes up space while “entering” view is animating in

[亡魂溺海] 提交于 2019-12-05 02:28:10

I had the same issue when I first started. To achieve the smooth effect simply change the timings of the CSS. Go into the animate.css file, look for the one the one you need to delay (in your case it would be fadeInRightBig. Change delay (or add a delay to it of about 1 or 2 seconds).

Another alternative is to make the position of the exit animation absolute.

Let me know if this helps. It worked for me. I wish that angularjs already handled this for us. Maybe the next version will solve these issues for us.

Another common way to solve this problem is to deal with z-index. The ng-enter usually must be below the ng-leave.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!