简体   繁体   English

Angular.js动画,结合了CSS和JS

[英]Angular.js animation, combining css and js

What I'm trying to do is fadeout old view and fadein new view, the thing is, new content needs to be absolute position until the old one fades out, and I would like to give it some top and maybe height as well, but when I use any css() function inside enter it seems to be overridden by stuff added by angular( -webkit-transition-property: opacity, clip; -webkit-transition-duration: 300ms, 300ms; ). 我想做的是淡出旧视图,然后淡入新视图,事实是,新内容必须是绝对位置,直到旧内容淡出为止,我也想给它一些顶部,也许还有高度,但是当我在内部使用任何css()函数enter它似乎被angular( -webkit-transition-property: opacity, clip; -webkit-transition-duration: 300ms, 300ms; )添加的内容所覆盖。

Is this an expected behaviour? 这是预期的行为吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM