@keyframes box-ani {
	from {
		transform: rotateX(-10deg) rotateY(0deg);
	}

	to {
		transform: rotateX(-10deg) rotateY(360deg);
	}
}

body {
	background-color: black;
}

#box2 {
	width: 250px;
	height: 250px;
	/* 以浏览器定位 */
	position: fixed;
	left: calc(50% - 125px);
	top: calc(50% - 125px);
	/* 变成3D空间 */
	transform-style: preserve-3d;
	transform: rotateX(-10deg) rotateY(0deg);
	animation-name: box-ani;
	/* 动画执行一次的时间 */
	animation-duration: 20s;
	/* 动画执行的次数，infinite代表无穷 */
	animation-iteration-count: infinite;
	/* 动画匀速执行 */
	animation-timing-function: linear
}

#box2>img {
	width: 100%;
	height: 100%;
	/* 绝对定位，以外边的box2为标准进行位置设置 */
	position: absolute;
	left: 0px;
	top: 0px;

}

#box2>img:nth-child(1) {
	transform: translateZ(125px);
}

#box2>img:nth-child(2) {
	transform: rotateY(180deg) translateZ(125px);
}

#box2>img:nth-child(3) {
	transform: rotateY(90deg) translateZ(125px);
}

#box2>img:nth-child(4) {
	transform: rotateY(270deg) translateZ(125px);
}

#box2>img:nth-child(5) {
	transform: rotateX(90deg) translateZ(125px);
}

#box2>img:nth-child(6) {
	transform: rotateX(270deg) translateZ(125px);
}

/* 前6张图片设置透明度 */
#box2>img:nth-child(-n+6) {
	opacity: 0.4;
}

/* ---------------------------------- */
#box2>img:nth-child(7) {
	transform: scale3d(0.5, 0.5, 0.5) translateZ(125px);
}

#box2>img:nth-child(8) {
	transform: scale3d(0.5, 0.5, 0.5) rotateY(180deg) translateZ(125px);
}

#box2>img:nth-child(9) {
	transform: scale3d(0.5, 0.5, 0.5) rotateY(90deg) translateZ(125px);
}

#box2>img:nth-child(10) {
	transform: scale3d(0.5, 0.5, 0.5) rotateY(270deg) translateZ(125px);
}

#box2>img:nth-child(11) {
	transform: scale3d(0.5, 0.5, 0.5) rotateX(90deg) translateZ(125px);
}

#box2>img:nth-child(12) {
	transform: scale3d(0.5, 0.5, 0.5) rotateX(270deg) translateZ(125px);
}

.i>img {
	transition-property: all;
	transition-delay: 1s;
}

