效果图:
<style>
div#box{
width: 500px;
height: 500px;
margin: 200px auto;
border: 1px solid red;
perspective: 500px;
}
div#inner{
width:200px;
height: 200px;
background: red;
transition: all 0.5s;
margin: 0 auto;
}
div#box:hover #inner{
transform: translateZ(-200px);
}
</style>
</div>