I'm having a strange problem with Chrome.
If I create a div
with some perspective, border radius, overflow hidden and a transformed div
inside the element wont respect de perspective.
http://codepen.io/cavax/pen/MwPgxz
If I remove the border radius as you can see the element has perspective.
Any idea?
<div id="prova">
<div id="rotate"></div>
</div>
<div id="prova2">
<div id="rotate2"> </div>
</div>
#prova {
width: 400px;
height: 200px;
-webkit-perspective: 400px;
perspective: 400px;
margin: 40px;
border: 1px solid #000;
overflow: hidden;
border-radius: 30px;
}
#rotate {
width: 200px;
height: 200px;
background-color: red;
-webkit-transform: rotateX(40deg);
transform: rotateX(40deg);
position: absolute;
bottom: 0px;
left: 100px;
}
#prova2 {
width: 400px;
height: 200px;
-webkit-perspective: 400px;
perspective: 400px;
margin: 40px;
border: 1px solid #000;
overflow: hidden;
}
#rotate2 {
width: 200px;
height: 200px;
background-color: red;
-webkit-transform: rotateX(40deg);
transform: rotateX(40deg);
position: absolute;
bottom: 0px;
left: 100px;
}
Actually overflow:hidden to hide perspective area. So it is not display.
When you removed overflow:hidden; it will be working properly
Thanks