效果图:
image文件夹下载地址:图片下载地址https://pan.baidu.com/s/19ogY42uoYzGKBfEDFg-KWg
提取码:5y2g
代码:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
body{
animation:play 20s linear 0s infinite alternate;
}
.box{
width: 200px;
height: 300px;
margin:200px auto;
position: fixed;
left:47%;
transform-style:preserve-3d;
/*transform:rotateX(-12deg);*/
animation:player 15s linear infinite;
}
.p{
position: absolute;
top: 0;
left: 0;
width: 100%;
height:100%;
}
.p:nth-child(1){
transform:rotateY(0deg) translateZ(275px);
}
.p:nth-child(2){
transform:rotateY(40deg) translateZ(275px);
}
.p:nth-child(3){
transform:rotateY(80deg) translateZ(275px);
}
.p:nth-child(4){
transform:rotateY(120deg) translateZ(275px)