- skew
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.box {
width: 300px;
height: 300px;
background-color: red;
margin: 100px auto;
transition: all 1s;
/* transform-origin: top; */
transform-origin: left top;
}
.box:hover {
/* transform: skew(30deg); */
transform: skew(0deg, 30deg);
}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>
- skew 效果