html - IE 11 not Showing 3D Transform -
html - IE 11 not Showing 3D Transform -
i have next code. in ie10/11 can't render 3d box (take in chrome)
note: tried utilize built in new code snippet feature clicking "insert code" never did anything.
http://codepen.io/aherrick/pen/egbmg
html:
<div class="rack-container"> <div class="rack show-leftop"> <figure class="back"> <svg width="444" height="294"> </svg> </figure> <figure class="front"> <svg width="444" height="294"> </svg> </figure> <figure class="left"> <svg width="96" height="294"> <rect class="rack-left" width="96" height="294" shape-rendering="crispedges" fill="#fff" fill-opacity="1" orientation="vertical"></rect> </svg> </figure> <figure class="top"> <svg width="444" height="96"> <rect class="rack-top" width="444" height="96" shape-rendering="crispedges" fill="#fff" fill-opacity="1"></rect> </svg> </figure> </div> </div>
css:
.rack-container { width: 444px; height: 294px; position: relative; margin: 0 auto 55px; border: 1px solid #ccc; -webkit-perspective: 2300px; -moz-perspective: 2300px; -o-perspective: 2300px; perspective: 2300px; } .rack { width: 100%; height: 100%; position: absolute; -webkit-transform-style: preserve-3d; -moz-transform-style: preserve-3d; -o-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-transition: -webkit-transform 1s; -moz-transition: -moz-transform 1s; -o-transition: -o-transform 1s; transition: transform 1s; } .rack figure { display: block; position: absolute; border: 2px solid black; line-height: 196px; font-size: 90px; text-align: center; font-weight: bold; color: white; } .rack .front, .rack .back { width: 444px; height: 294px; } .rack .left { width: 96px; height: 294px; left: 247px; } .rack .top { width: 444px; height: 96px; top: 50px; line-height: 96px; } .rack .bottom { display: none; } .rack .front { -webkit-transform: translatez( 50px ); -moz-transform: translatez( 50px ); -o-transform: translatez( 50px ); transform: translatez( 50px ); } .rack .back { -webkit-transform: rotatey( 0deg ) translatez( -50px ); -moz-transform: rotatey( 0deg ) translatez( -50px ); -o-transform: rotatey( 0deg ) translatez( -50px ); transform: rotatey( 0deg ) translatez( -50px ); } .rack .right { -webkit-transform: rotatey( 90deg ) translatez( 150px ); -moz-transform: rotatey( 90deg ) translatez( 150px ); -o-transform: rotatey( 90deg ) translatez( 150px ); transform: rotatey( 90deg ) translatez( 150px ); } .rack .left { -webkit-transform: rotatey(90deg) translatez( -296px ); -moz-transform: rotatey(90deg) translatez( -296px ); -o-transform: rotatey(90deg) translatez( -296px ); transform: rotatey(90deg) translatez( -296px ); } .rack .top { -webkit-transform: rotatex( 90deg ) translatez( 100px ); -moz-transform: rotatex( 90deg ) translatez( 100px ); -o-transform: rotatex( 90deg ) translatez( 100px ); transform: rotatex( 90deg ) translatez( 100px ); } .rack.show-leftop { -webkit-transform: translatez( -100px ) rotatex(-25deg)rotatey(50deg); -moz-transform: translatez( -100px ) rotatex(-25deg)rotatey(50deg); -o-transform: translatez( -100px ) rotatex(-25deg)rotatey(50deg); transform: translatez( -100px ) rotatex(-25deg)rotatey(50deg); }
you've figured out since it's been 4 months, no version of ie supports transform-style: preserve-3d. breaks sort of 3d type object in css in ie. looks project spartan back upwards out of gate, doesn't help working in ie right now.
html css transform internet-explorer-10 internet-explorer-11
Comments
Post a Comment