I've got the following CSS hover effect that behaves properly on all browsers but it doesn't on IE. They are three divs, one parent, two children. I want to rotate the parent div in order to show the child's content. you can see the code in https://jsfiddle.net/drz338r9/11// I really appreciate any help.
The html code is:
<a class="social" href="" target="_blank">
<div class="front">
</div>
<div class="back">
</div>
</a>
CSS code is:
.social {
float: left;
width: 100px;
height: 100px;
position: relative;
-ms-transform: rotateY(0deg);
transition: transform .25s ease-out;
transform-style: preserve-3d;
}
.social > div {
width: 100px; height: 100px;
position: absolute; top: 0; left: 0; right: 0; bottom: 0;
}
.social >.front {
transform:translateZ(40px);
width: 100px;
height: 100px;
background: red;
}
.social >.back {
background: #3B5998;
-ms-transform: rotateY(-100deg) translateZ(40px);
transform:rotateY(-100deg) translateZ(40px);
width: 100px;
height: 100px;
background: black;
}
.social:hover {
-ms-transform: rotateY(100deg);
transform: rotateY(100deg);
}
== UPDATE ==
Based on helpful comments, the solution could be found here:https://jsfiddle.net/ohqxnxnn/