<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>把女朋友感动哭的相册</title>
<style type="text/css">
html{
width: 100%;
height: 100%;
}
.bigbox{
width: 10px;
height: 10px;
margin: 200px 400px;
position: relative;
}
.box{
width:500px;
height:300px;
margin: 0 auto;
transform-style: preserve-3d;
transform: rotateX(-30deg) rotateY(-80deg);
-webkit-animation: mystyle 15s infinite;
animation-timing-function: linear;
}
@-webkit-keyframes mystyle{
from{transform: rotateX(-180deg) rotateY(-180deg);}
to{transform: rotateX(180deg) rotateY(180deg);}
}
.box div{
position: absolute;
width: 200px;
height: 200px;
opacity: 0.8;
transition: all .4s;
}
.bigpic{
width: 200px;
height: 200px;
}
.box .bigfront{
transform: rotateY(0deg) translateZ(100px);
}
.box .bigback{
transform: translateZ(-100px) rotateY(180deg);
}
.box .bigleft{
transform: rotateY(90deg) translateZ(100px);
}
.box .bigright{
transform: rotateY(-90deg) translateZ(100px);
}
.box .bigtop{
transform: rotateX(90deg) translateZ(100px);
}
.box .bigbottom{
transform: rotateX(-90deg) translateZ(100px);
}
.box span{
display: block;
position: absolute;
width: 140px;
height: 140px;
top: 25px;
left: 25px;
}
.box .smallpic{
width: 140px;
height: 140px;
}
.box .smallleft{
transform: rotateY(90deg) translateZ(70px);
}
.box .smallright{
transform: rotateY(-90deg) translateZ(70px);
}
.box .smalltop{
transform: rotateX(90deg) translateZ(70px);
}
.box .smallbottom{
transform: rotateX(-90deg) translateZ(70px);
}
.box .smallfront{
transform: rotateY(0deg) translateZ(70px);
}
.box .smallback{
transform: translateZ(-70px) rotateY(180deg);
}
/*:hover 我们之前说过的一个css选择器,能够让鼠标指向的时候触发*/
.box:hover .bigleft{
transform: rotateY(90deg) translateZ(300px);
}
.box:hover .bigright{
transform: rotateY(-90deg) translateZ(300px);
}
.box:hover .bigtop{
transform: rotateX(90deg) translateZ(300px);
}
.box:hover .bigbottom{
transform: rotateX(-90deg) translateZ(300px);
}
.box:hover .bigfront{
transform: rotateY(0deg) translateZ(300px);
}
.box:hover .bigback{
transform: translateZ(-300px) rotateY(180deg);
}
</style>
</head>
<body>
<div class="bigbox">
<div class="box">
<div class="bigfront">
<img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1599625850542&di=0e04f8ce33d2c901b2fed7db754d3939&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201702%2F23%2F20170223114933_dkSeP.thumb.700_0.jpeg" class="bigpic" >
</div>
<div class="bigback">
<img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1599625865391&di=48f2f1597591f88456cd87608f110268&imgtype=0&src=http%3A%2F%2Fwww.singaporevr.com%2Fd%2Ffile%2Fhuoche%2F2016051822%2F20160329013448617.jpg" class="bigpic">
</div>
<div class="bigleft">
<img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1599625874116&di=812dc13a4f4effbdd5389b223c2bf71d&imgtype=0&src=http%3A%2F%2F5b0988e595225.cdn.sohucs.com%2Fimages%2F20170828%2Fbca4530398cb45caa3101da954bc8a81.jpeg" class="bigpic">
</div>
<div class="bigright">
<img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1599625850541&di=a567413d33708350535bd9ead036e536&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201608%2F09%2F20160809110222_UXELJ.jpeg" class="bigpic">
</div>
<div class="bigtop">
<img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1599625850527&di=8857acae86cdb106962320d3665095ff&imgtype=0&src=http%3A%2F%2Fwww.zhuobufan.com%2FUserFiles%2FAttachment%2F17%2F03_03%2F095602dd-c5c6-4901-9ff5-3076cb870690.jpg" class="bigpic">
</div>
<div class="bigbottom">
<img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1599625850527&di=8857acae86cdb106962320d3665095ff&imgtype=0&src=http%3A%2F%2Fwww.zhuobufan.com%2FUserFiles%2FAttachment%2F17%2F03_03%2F095602dd-c5c6-4901-9ff5-3076cb870690.jpg" class="bigpic">
</div>
<span class="smallfront">
<img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1599625938782&di=65cf9d12a0394cbbe1345fc00860ab2c&imgtype=0&src=http%3A%2F%2F5b0988e595225.cdn.sohucs.com%2Fq_70%2Cc_zoom%2Cw_640%2Fimages%2F20181221%2F013a21d277564be4889dc2f602c5d49d.jpeg" class="smallpic" />
</span>
<span class="smallback">
<img src="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1998593872,2359804055&fm=26&gp=0.jpg" class="smallpic" />
</span>
<span class="smallleft">
<img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1599625850540&di=3228d06f6ce68d9568e7787e51b21cf9&imgtype=0&src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2Fb0fb6031db6a7c587275b2b93929bb770f507eef2a9e1-EsjH0u_fw658" class="smallpic" />
</span>
<span class="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1599625850539&di=9fb462de9f0e00f293d017a645ae5590&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201812%2F29%2F20181229232103_KQwZC.jpeg">
<img src="image/10.jpg" class="smallpic" />
</span>
<span class="smalltop">
<img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1599625850538&di=063e98401bfba2820447b76a95637e9c&imgtype=0&src=http%3A%2F%2F5b0988e595225.cdn.sohucs.com%2Fimages%2F20181204%2Fe8d5546a72c9426eab440f721dc42611.jpeg" class="smallpic" />
</span>
<span class="smallbottom">
<img src="https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3707393294,1984804902&fm=26&gp=0.jpg" class="smallpic" />
</span>
</div>
</div>
</body>
</html>