In this Link I have a div which rotates on hover and I want to know if it's possible to use :before or :after to act as a shadow. In the example the :before element gets transformed with the div and comes on top even though it has a negative z-index. I would like it to rest behind without any transformation.
It is all about css, the html is just two div, one container for perspective and the 'card' being transformed.
<div id="container">
<div id="card"></div>
</div>
About compatibility, This is a webkit only experiment I'm trying to achieve.