<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
div{
perspective: 800px;
border-radius: 10px;
width: 300px;
height: 270px;
border: 1px solid #eee;
padding: 15px;
}
img{
width: 300px;
height: 270px;
animation: rotate 2s infinite;
}
@keyframes rotate{
from{
transform: rotateY(0deg);
}
to{
transform: rotateY(180deg);
}
}
</style>
<body>
<div><img src="images/镜像图.jpg" alt=""></div>
</body>
</html>