css3 - card flip doesn't work in IE (11, 10, etc) -
i found tutorial david desandro on css3 transform found code doesn't work in ie...
http://desandro.github.io/3dtransforms/examples/card-02-slide-flip.html
note when "flip" clicked, thing happens card 1 still shown , card 2 hidden...anyone know what's going on , have fix this?
here code used effect
.container { width: 200px; height: 260px; position: relative; margin: 0 auto 40px; border: 1px solid #ccc; -webkit-perspective: 800px; -moz-perspective: 800px; -o-perspective: 800px; perspective: 800px; } #card { width: 100%; height: 100%; position: absolute; -webkit-transition: -webkit-transform 1s; -moz-transition: -moz-transform 1s; -o-transition: -o-transform 1s; transition: transform 1s; -webkit-transform-style: preserve-3d; -moz-transform-style: preserve-3d; -o-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-transform-origin: right center; -moz-transform-origin: right center; -o-transform-origin: right center; transform-origin: right center; } #card.flipped { -webkit-transform: translatex( -100% ) rotatey( -180deg ); -moz-transform: translatex( -100% ) rotatey( -180deg ); -o-transform: translatex( -100% ) rotatey( -180deg ); transform: translatex( -100% ) rotatey( -180deg ); } #card figure { display: block; height: 100%; width: 100%; line-height: 260px; color: white; text-align: center; font-weight: bold; font-size: 140px; position: absolute; -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; -o-backface-visibility: hidden; backface-visibility: hidden; } #card .front { background: red; } #card .back { background: blue; -webkit-transform: rotatey( 180deg ); -moz-transform: rotatey( 180deg ); -o-transform: rotatey( 180deg ); transform: rotatey( 180deg ); }
internet explorer not support css transform property 'preserve-3d', why demo not work. however, 'preserve-3d' 1 of features in development.
you can read preserve-3d here: http://www.w3.org/tr/css3-transforms/#transform-style-property
if interested in finding out other features ie team working on, check out: http://status.modern.ie/
Comments
Post a Comment