body {
height:600px;
}
* {
margin:0;
padding:0;
}
ul,li {
list-style:none;
}
.slider {
width:500px;
height:300px;
position:relative;
margin:0 auto;
}
.slider-outer {
width:100%;
height:100%;
}
.img {
}.slider-item {
width:75px;
height:100%;
position:absolute;
transform-style:preserve-3d;
transform:rotateX(0deg);
transition:all 1s;
}
.img {
width:100%;
height:100%;
display:inline-block;
position:absolute;
}
.slider-item .img:nth-child(1) {
background:url("http://www.jq22.com/img/cs/500x300-1.png") no-repeat;
transform:rotateX(0deg) translateZ(180px);
}
.slider-item .img:nth-child(2) {
background:url("http://www.jq22.com/img/cs/500x300-2.png") no-repeat;
transform:rotateX(90deg) translateZ(180px);
}
.slider-item .img:nth-child(3) {
background:url("http://www.jq22.com/img/cs/500x300-3.png") no-repeat;
transform:rotateX(180deg) translateZ(180px);
}
.slider-item .img:nth-child(4) {
background:url("http://www.jq22.com/img/cs/500x300-4.png") no-repeat;
transform:rotateX(270deg) translateZ(180px);
}
.arrow {
top:50%;
margin-top:-25px;
width:100%;
display:flex;
position:absolute;
justify-content:space-between;
font-size:30px;
}
#prev,#next {
width:50px;
height:50px;
background-color:rgba(21,21,21,0.3);
line-height:50px;
color:#ffffff;
border-radius:6px;
text-align:center;
cursor:pointer;
}