简体   繁体   English

IE10打破了Webkit和Firefox中的CSS3 3D动画

[英]IE10 breaks CSS3 3D animations working in Webkit & Firefox

I have a simple horizontal CSS3 3D flip effect on two div s which runs fine in Chrome, Safari and Firefox. 我在两个div上有一个简单的水平CSS3 3D翻转效果,在Chrome,Safari和Firefox中运行良好。 But IE10 screws it up and does some strange additional animations on all axis as it seems. 但IE10将其搞砸,并在所有轴上做了一些奇怪的额外动画。

IE10动画

I've tracked it down to the additional translateX animation. 我已将其追溯到额外的translateX动画。 If I remove it and only do the rotateY , IE10 behaves just like the other browsers. 如果我删除它并且只执行rotateY ,IE10就像其他浏览器一样。 But I don't want to renounce the x-axis animation. 但我不想放弃x轴动画。

Please have a look at the issue in this jsFiddle (only IE & Webkit for clarity): http://jsfiddle.net/uJnHE/5/ 请看一下这个jsFiddle中的问题(为了清楚起见,只有IE和Webkit): http//jsfiddle.net/uJnHE/5/

Remove your webkit prefixes and add translateX(0) , because IE10 beta doesn't know how to transition between an undeclared transform propery and translateX(-200px) 删除你的webkit前缀并添加translateX(0) ,因为IE10 beta不知道如何在未声明的变换translateX(-200px)translateX(-200px)之间进行转换

@keyframes flipHotelInfoLeft {
  0% {
      animation-timing-function: ease-in;
      transform: rotateY(180deg) translateX(0);
  }
  50% {
      transform: rotateY(90deg) translateX(200px);
  }
  100% {
      animation-timing-function: ease-out;
      transform: rotateY(0) translateX(0);
  }
}

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

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