Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS3 - 3D Flip Animation - IE10 transform-origin: preserve-3d workaround
    primarykey
    data
    text
    <p>After looking through IE10's <a href="http://msdn.microsoft.com/en-gb/library/ie/hh673529%28v=vs.85%29.aspx#the_ms_transform_style_property">developer blog</a> I have found that they do not support the preserve-3d setting.</p> <p>They do offer a workaround, but I can not seem to get it working. My example below works in Safari, Chrome and Firefox but not IE10. If anyone could help me achieve this I would be very thankful.</p> <p>The boxes should rotate around the Y axis on click to show some text and a green background color. This is not the case in IE10</p> <p><strong>My example:</strong> <a href="http://codepen.io/2ne/pen/zEpge">http://codepen.io/2ne/pen/zEpge</a></p> <p>Part of code:</p> <p>HTML</p> <pre><code>&lt;div class="flip-wrapper"&gt; &lt;div class="front"&gt;&lt;/div&gt; &lt;div class="back"&gt;IE10 SUCKS&lt;/div&gt; &lt;/div&gt; </code></pre> <p>CSS</p> <pre><code>.flip-wrapper { cursor: pointer; height: 100%; -moz-perspective: 1000; -webkit-perspective: 1000; -ms-perspective: 1000; perspective: 1000; -moz-transform-style: preserve-3d; -webkit-transform-style: preserve-3d; -ms-transform-style: preserve-3d; transform-style: preserve-3d; width: 100%; } .flip-wrapper .front, .flip-wrapper .back { -moz-backface-visibility: hidden; -webkit-backface-visibility: hidden; -ms-backface-visibility: hidden; backface-visibility: hidden; height: 100%; position: absolute; width: 100%; } .flip-wrapper .back { background: none repeat scroll 0 0 #298F68; -webkit-transform: rotateY(180deg); -moz-transform: rotateY(180deg); transform: rotateY(180deg); } .flip-wrapper.flipped { cursor: default; -webkit-animation: flip 500ms 1; -moz-animation: flip 500ms 1; animation: flip 500ms 1; -webkit-animation-fill-mode: forwards; -moz-animation-fill-mode: forwards; -o-animation-fill-mode: forwards; -ms-animation-fill-mode: forwards; animation-fill-mode: forwards; } </code></pre> <p>2ne</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload