<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.box{
width: 200px;
height: 200px;
position: relative;
margin: 50px auto;
transition: all 1s;
transform-style: preserve-3d;
}
.box>div{
width: 100%;
height: 100%;
position: absolute;
/*opacity:.5;*/
}
.box>div:nth-child(1){
background: pink url("../picture/1.jpg") no-repeat;
background-size: 100% 100%;
transform: rotateX(-91deg) translateZ(100px);
}
.box>div:nth-child(2){
background:blue url("../picture/2.jpg") no-repeat;
background-size: 100% 100%;
transform: rotateX(91deg) translateZ(100px);
}
.box>div:nth-child(3){
background:purple url("../picture/3.jpg") no-repeat;
background-size: 100% 100%;
transform: rotateY(-91deg) translateZ(100px);
}
.box>div:nth-child(4){
background:green url("../picture/4.png") no-repeat;
background-size: 100% 100%;
transform: rotateY(91deg) translateZ(100px);
}
.box>div:nth-child(5){
background: yellow url("../picture/5.jpeg") no-repeat;
background-size: 100% 100%;
transform: translateZ(100px);
}
.box>div:nth-child(6){
background: fuchsia url("../picture/6.jpg") no-repeat;
background-size: 100% 100%;
transform: rotateX(180deg) translateZ(100px);
}
.box:hover{
transform: rotateX(360deg) rotateY(360deg);
}
</style>
</head>
<body>
<div class="box">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</body>
</html>
近期评论