答案 0 :(得分:1)
我就是这样做的:
.container {
perspective: 400px;
perspective-origin: center center;
}
img {
width: 500px;
height: 300px;
transition: 0.4s;
}
img:hover {
transform: rotateY(0deg);
}
.rightimg {
transform-origin: right center;
transform: perspective(600px) rotateY(-20deg);
}
.leftimg {
transform-origin: left center;
transform: perspective(600px) rotateY(20deg);
}