#carousel{
	width: 100%;
	height: auto;
	//position: fixed;
	position: absolute;
	transform-style: preserve-3d;
	animation: rotation 20s infinite linear;
        //opacity:0.1;
        filter:alpha(opacity=40); /* 针对 IE8 以及更早的版本 */
}
#carousel:hover{
	animation-play-state: paused;
        opacity:1;
        filter:alpha(opacity=100); /* 针对 IE8 以及更早的版本 */
}
#carousel figure{
	display: block;
	position: absolute;
	width: 240px;
	height: 150px;
	left: 10px;
	top: 10px;
	background: black;
	overflow: hidden;
	border: solid 5px black;
}
#carousel figure:nth-child(1){transform: rotateY(0deg) translateZ(288px);}
#carousel figure:nth-child(2) { transform: rotateY(40deg) translateZ(288px);}
#carousel figure:nth-child(3) { transform: rotateY(80deg) translateZ(288px);}
#carousel figure:nth-child(4) { transform: rotateY(120deg) translateZ(288px);}
#carousel figure:nth-child(5) { transform: rotateY(160deg) translateZ(288px);}
#carousel figure:nth-child(6) { transform: rotateY(200deg) translateZ(288px);}
#carousel figure:nth-child(7) { transform: rotateY(240deg) translateZ(288px);}
#carousel figure:nth-child(8) { transform: rotateY(280deg) translateZ(288px);}
#carousel figure:nth-child(9) { transform: rotateY(320deg) translateZ(288px);}
.wdhe{
   width:240px;
    height:150px;
}

img{
	-webkit-filter: grayscale(0);
	cursor: pointer;
	transition: all .5s ease;
}
img:hover{
	-webkit-filter: grayscale(0);
  transform: scale(1.2,1.2);
}
@keyframes rotation{
	from{
		transform: rotateY(0deg);
	}
	to{
		transform: rotateY(360deg);
	}
}