CSS IE中的翻转动画:翻转的一侧显示镜像内容

CSS flipping animation in IE: Turned side shows mirror content

我正在尝试通过以下 website and I got it to work without hover effect and with a button to toggle the transition. See this Fiddle

实现翻转动画

一个给定的 IE 代码在悬停时运行良好,但通过使用按钮,第二个按钮显示在右上角,文本被镜像。有人可以告诉我如何让它在左上角正常显示,就像在其他浏览器中一样吗?这是 css 仅适用于 IE 的部分:

        /* entire container, keeps perspective */
.flip-container {
    perspective: 1000;
    transform-style: preserve-3d;
}
    /*  UPDATED! flip the pane when hovered */
    .flip-container.hover .back {
        transform: rotateY(0deg);
    }
    .flip-container.hover .front {
        transform: rotateY(180deg);
    }

.flip-container, .front, .back {
    width: 100%;
    height: 500px;
}

/* flip speed goes here */
.flipper {
    transition: 0.6s;
    transform-style: preserve-3d;

    position: relative;
}

/* hide back of pane during swap */
.front, .back {
    backface-visibility: hidden;
    transition: 0.6s;
    transform-style: preserve-3d;

    position: absolute;
    top: 0;
    left: 0;
}

/*  UPDATED! front pane, placed above back */
.front {
    z-index: 2;
    transform: rotateY(0deg);
}

/* back, initially hidden pane */
.back {
    transform: rotateY(-180deg);
}

/* 
    Some vertical flip updates 
*/
.vertical.flip-container {
    position: relative;
}

    .vertical .back {
        transform: rotateX(180deg);
    }

    .vertical.flip-container:hover .back {
        transform: rotateX(0deg);
    }
.vertical.flip-container:hover .front {
    transform: rotateX(180deg);
}
} 

IE 已知转换问题 属性。对于您的示例,在仅限 IE 的样式上,从父项 div 中删除悬停 (.hover) 时的转换。参见 fiddle

.flip-container.hover .flipper {
    transform: none;
}