I have a cool feature for one of my clients where clicking on one div causes another div to flip in its place, like a card flipping over. It's kind of like those portfolio image flippers, but instead of images, it flips divs with content inside.
How can I make this work in IE since it uses preserve-3d animation?
You can see a live example here.
Here is the code:
$(".cc").click(function(){$(this).toggleClass("active")});
.cc { position: relative; width: 90%; height: 325px; z-index: 1; margin: 0 auto; -ms-perspective: 1000; -moz-perspective: 1000; -webkit-perspective: 1000; -o-perspective: 1000; perspective: 1000; } .c { width: 100%; height: 100%; -ms-transform-style: preserve-3d; -moz-transform-style: preserve-3d; -webkit-transform-style: preserve-3d; -o-transform-style: preserve-3d; transform-style: preserve-3d; transition: all 1s ease; -ms-transition: all 1s ease; -moz-transition: all 1s ease; -webkit-transition: all 1s ease; -o-transition: all 1s ease; } ... (code continued)
Edit: I've managed to add support for IE10+ in my answer below. However, IE9 has proven to be quite troublesome and I'm out of ideas. If anyone else can figure out how to make it work in IE9, that would be amazing. Otherwise, consider this question solved with the solution provided. Thank you.