<style>
div {
overflow: hidden;
width: 200px;
height: 200px;
border: 1px solid hotpink;
margin: 10px;
float: left;
div: :before
content:“心愿";
display: block;
width: 100%;
height: 100%;
background-color:hotpink;
transform: rotate(180deg) ;
transform-origin: left bottom;
transition: all .25s;
}
div::hover: :before {
transform: rotate (0deg);}
</style>
</head>
<body>
<div></div>
<div></div>
<div></div>
</body>