backside-visibility not working in IE10 - works fine in webkit

前端 未结 5 1511
面向向阳花
面向向阳花 2020-12-05 22:15

I\'m building a simple pure-css \'card flip\' animation, it has to work in IE10, but sadly what I\'ve written doesn\'t.

jsFiddle demo here or sample html zip

5条回答
  •  Happy的楠姐
    2020-12-05 22:39

    This seems to be a duplicate of CSS3 - 3D Flip Animation - IE10 transform-origin: preserve-3d workaround

    The backside-visibility is working on IE10 when it is applied to the element itself (if applied to the parent, it will not work). You should combine it in the same transform property like this:

    .back{
      transform : perspective(1000px) rotateY(0deg);
    }
    .front{
      transform : perspective(1000px) rotateY(180deg);
    }
    

提交回复
热议问题