效果如图
css
<style>
*{margin:0;padding:0;}
body{perspective:1500px;perspective-origin:50% 200%;}
@keyframes rotateBox{
0%{transform:rotatey(0deg);}
100%{transform:rotatey(360deg);}
}
div.content{width:300px;height:200px;position:relative;margin:300px auto;transform-style:preserve-3d;animation:rotateBox 8s linear 0s infinite;}
div.content>img{width:300px;height:200px;position:absolute;top:0;left:0;}
div.content>img:nth-child(1){transform:rotatey(0deg) translatez(300px)}
div.content>img:nth-child(2){transform:rotatey(60deg) translatez(300px)}
div.content>img:nth-child(3){transform:rotatey(120deg) translatez(300px)}
div.content>img:nth-child(4){transform:rotatey(180deg) translatez(300px)}
div.content>img:nth-child(5){transform:rotatey(240deg) translatez(300px)}
div.content>img:nth-child(6){transform:rotatey(300deg) translatez(300px)}
</style>
html
<body>
<div class="content">
<img src="img/1.jpg" alt="">
<img src="img/2.jpg" alt="">
<img src="img/3.jpg" alt="">
<img src="img/4.jpg" alt="">
<img src="img/5.jpg" alt="">
<img src="img/6.jpg" alt="">
</div>
</body>