简体   繁体   English

如何使此3D变换在IE 10中起作用?

[英]How can I make this 3D transform work in IE 10?

I am attempting to make a CSS 3D transform work in IE10. 我正在尝试在IE10中进行CSS 3D转换。 The problem is, IE10 does not support the preserve-3d property. 问题是,IE10不支持preserve-3d属性。

Microsoft CLAIMS there is a workaround. Microsoft CLAIMS有一个解决方法。 Their solution is the simply apply the transform(s) of the parent(s) to the child element(s). 他们的解决方案是简单地将父对象的变换应用于子元素。 This however, does not work. 但是,这不起作用。

I've done copious amounts of searching to find a solution. 我已经进行了大量的搜索以找到解决方案。 There are a few accepted answers that supposedly make a 3D transform work. 有一些公认的答案可以使3D转换工作。 The problem is... they're REALLY simple animations like a card flip. 问题是……它们是像卡片翻转一样简单的动画。 To my knowledge, that wouldn't require preserve-3d in the first place. 据我所知,这并不需要preserve-3d。

Here is what I need to make work in IE10: 这是我需要在IE10中工作的内容:

http://codepen.io/Joe_Temp/full/opFKu http://codepen.io/Joe_Temp/full/opFKu

Does anyone have any idea IF or HOW this can be accomplished? 有谁知道,如果或如何做到这一点?

Though I haven't tested it yet on IE, removing the transform-style: preserve-3d; 尽管我尚未在IE上对其进行测试,但是删除了transform-style: preserve-3d; property from a div with a card-flip transform in Chrome allows the flipping action still works, you just can't have a back-facing container. div中的div属性具有Chrome中的卡片翻转转换功能,翻转操作仍然有效,但是您不能使用背面容器。 So basically, you could flip an image, and the image would appear backwards - but that's all you'd be able to do. 因此,基本上,您可以翻转图像,并且该图像将向后显示-但这就是您所能做的。 Probably not what you want. 可能不是您想要的。

If you are willing to accept the use of javascript, then you have a much wider array of options. 如果您愿意接受JavaScript的使用,那么您可以使用更多的选择。 This resource discusses 10 different js plugins which all handle the flipping action a little differently: 本资源讨论了10个不同的js插件,它们对翻转动作的处理略有不同:

http://www.sitepoint.com/10-jquery-flip-effect-plugins/ http://www.sitepoint.com/10-jquery-flip-effect-plugins/

I have personally used flippy.js and it worked out pretty well. 我个人使用过flippy.js ,效果很好。 It is built to handle logic between card flips, and therefore ships with tons of callbacks that fire prior to the card flipping, in the middle, after it's done, etc. It is also better supported than the existing no-JS solution that you've come across. 它是为处理卡片翻转之间的逻辑而构建的,因此附带了在卡片翻转之前,中间,完成之后触发的大量回调。与现有的no-JS解决方案相比,它还得到了更好的支持我碰到过。

Hope this helps. 希望这可以帮助。

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

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