<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
section{
width: 500px;
height: 500px;
background: #ccc;
margin: 100px auto;
position: relative;
}
div{
width: 300px;
height: 300px;
text-align: center;
line-height: 300px;
font-size: 140px;
color: #fff;
font-weight: 900;
position: absolute;
backface-visibility: hidden;
transition: 1s;
}
div:nth-child(1){
background: orange;
}
div:nth-child(2){
background: blue;
transform: rotateY(180deg);
}
section:hover div:nth-child(2){
transform: rotateY(360deg);
}
section:hover div:nth-child(1){
transform: rotateY(180deg);
}
</style>
</head>
<body>
<section>
<div>正</div>
<div>反</div>
</section>
</body>
</html>