<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
div{
overflow: hidden;
width: 200px;
height: 200px;
border: 5px solid rgb(1, 255, 242);
margin: 10px;
float: left;
}
div::before{
content: "哈哈哈";
display: block;
width: 100%;
height: 100%;
background-color:rgb(225, 0, 250);
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>
</html>