css实现一个三维火车进站动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现一个三维火车进站动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> <style> @charset "UTF-8"; * { border: 0; box-sizing: border-box; margin: 0; padding: 0; } body { font-size: 30px; height: 100vh; margin: 0; } .container { background: #6cf; display: flex; margin: auto; overflow: hidden; position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; perspective: 800px; transform-style: preserve-3d; } .surface { display: block; width: 12em; height: 12em; margin: auto; transform-style: preserve-3d; transform: rotateX(45deg) rotateZ(45deg); will-change: transform; } .block, .plate { display: none; transform-style: preserve-3d; position: absolute; bottom: 0; } .block-inner > div, .plate { width: 1em; height: 1em; } .block-inner > div { display: flex; flex-wrap: wrap; align-content: flex-start; position: absolute; } .block-inner { position: relative; width: 1em; transform-style: preserve-3d; transform: rotateX(-90deg) translateZ(1em); } .back { transform: translateZ(-1em) rotateY(180deg); } .left { transform-origin: center left; transform: rotateY(270deg) translateX(-1em); } .right { transform-origin: top right; } .top, .bottom { transform-origin: top center; } .b1 { display: inherit; transform: translate3d(4em, -11.5em, 1.5em); } .b1 .block-inner div { background-color: #888; } .b1 .block-inner div.top, .b1 .block-inner div.bottom { width: 0.5em; height: 2em; } .b1 .block-inner div.top { transform: rotateX(-90deg) translateY(-1em); } .b1 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-1em) translateZ(0.75em); } .b1 .block-inner div.front:before, .b1 .block-inner div.back:before, .b1 .block-inner div.left:before, .b1 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b1 .block-inner div.front, .b1 .block-inner div.back { width: 0.5em; height: 0.75em; } .b1 .block-inner div.front:before, .b1 .block-inner div.back:before { opacity: 0.2; } .b1 .block-inner div.front { transform: translateZ(1em); } .b1 .block-inner div.left, .b1 .block-inner div.right { width: 2em; height: 0.75em; } .b1 .block-inner div.left:before, .b1 .block-inner div.right:before { opacity: 0.4; } .b1 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, -1.5em); } .b2 { display: inherit; transform: translate3d(4em, -11.5em, 2em); } .b2 .block-inner div { background-color: #888; } .b2 .block-inner div.top, .b2 .block-inner div.bottom { width: 3em; height: 2em; } .b2 .block-inner div.top { transform: rotateX(-90deg) translateY(-1em); } .b2 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-1em) translateZ(0.5em); } .b2 .block-inner div.front:before, .b2 .block-inner div.back:before, .b2 .block-inner div.left:before, .b2 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b2 .block-inner div.front, .b2 .block-inner div.back { width: 3em; height: 0.5em; } .b2 .block-inner div.front:before, .b2 .block-inner div.back:before { opacity: 0.2; } .b2 .block-inner div.front { transform: translateZ(1em); } .b2 .block-inner div.left, .b2 .block-inner div.right { width: 2em; height: 0.5em; } .b2 .block-inner div.left:before, .b2 .block-inner div.right:before { opacity: 0.4; } .b2 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 1em); } .b3 { display: inherit; transform: translate3d(4em, -11.5em, 2.5em); } .b3 .block-inner div { background-color: #888; } .b3 .block-inner div.top, .b3 .block-inner div.bottom { width: 3em; height: 0.5em; } .b3 .block-inner div.top { transform: rotateX(-90deg) translateY(0.5em); } .b3 .block-inner div.bottom { transform: rotateX(-90deg) translateY(0.5em) translateZ(0.5em); } .b3 .block-inner div.front:before, .b3 .block-inner div.back:before, .b3 .block-inner div.left:before, .b3 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b3 .block-inner div.front, .b3 .block-inner div.back { width: 3em; height: 0.5em; } .b3 .block-inner div.front:before, .b3 .block-inner div.back:before { opacity: 0.2; } .b3 .block-inner div.front { transform: translateZ(-0.5em); } .b3 .block-inner div.left, .b3 .block-inner div.right { width: 0.5em; height: 0.5em; } .b3 .block-inner div.left:before, .b3 .block-inner div.right:before { opacity: 0.4; } .b3 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 2.5em); } .b4 { display: inherit; transform: translate3d(4em, -10em, 2.5em); } .b4 .block-inner div { background-color: #888; } .b4 .block-inner div.top, .b4 .block-inner div.bottom { width: 3em; height: 0.5em; } .b4 .block-inner div.top { transform: rotateX(-90deg) translateY(0.5em); } .b4 .block-inner div.bottom { transform: rotateX(-90deg) translateY(0.5em) translateZ(0.5em); } .b4 .block-inner div.front:before, .b4 .block-inner div.back:before, .b4 .block-inner div.left:before, .b4 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b4 .block-inner div.front, .b4 .block-inner div.back { width: 3em; height: 0.5em; } .b4 .block-inner div.front:before, .b4 .block-inner div.back:before { opacity: 0.2; } .b4 .block-inner div.front { transform: translateZ(-0.5em); } .b4 .block-inner div.left, .b4 .block-inner div.right { width: 0.5em; height: 0.5em; } .b4 .block-inner div.left:before, .b4 .block-inner div.right:before { opacity: 0.4; } .b4 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 2.5em); } .b5 { display: inherit; transform: translate3d(9.5em, -7em, 2em); } .b5 .block-inner div { background-color: #888; } .b5 .block-inner div.top, .b5 .block-inner div.bottom { width: 2em; height: 4em; } .b5 .block-inner div.top { transform: rotateX(-90deg) translateY(-3em); } .b5 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-3em) translateZ(0.5em); } .b5 .block-inner div.front:before, .b5 .block-inner div.back:before, .b5 .block-inner div.left:before, .b5 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b5 .block-inner div.front, .b5 .block-inner div.back { width: 2em; height: 0.5em; } .b5 .block-inner div.front:before, .b5 .block-inner div.back:before { opacity: 0.2; } .b5 .block-inner div.front { transform: translateZ(3em); } .b5 .block-inner div.left, .b5 .block-inner div.right { width: 4em; height: 0.5em; } .b5 .block-inner div.left:before, .b5 .block-inner div.right:before { opacity: 0.4; } .b5 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, -2em); } .b6 { display: inherit; transform: translate3d(11em, -7em, 2.5em); } .b6 .block-inner div { background-color: #888; } .b6 .block-inner div.top, .b6 .block-inner div.bottom { width: 0.5em; height: 4em; } .b6 .block-inner div.top { transform: rotateX(-90deg) translateY(-3em); } .b6 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-3em) translateZ(0.5em); } .b6 .block-inner div.front:before, .b6 .block-inner div.back:before, .b6 .block-inner div.left:before, .b6 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b6 .block-inner div.front, .b6 .block-inner div.back { width: 0.5em; height: 0.5em; } .b6 .block-inner div.front:before, .b6 .block-inner div.back:before { opacity: 0.2; } .b6 .block-inner div.front { transform: translateZ(3em); } .b6 .block-inner div.left, .b6 .block-inner div.right { width: 4em; height: 0.5em; } .b6 .block-inner div.left:before, .b6 .block-inner div.right:before { opacity: 0.4; } .b6 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, -3.5em); } .b7 { display: inherit; transform: translate3d(9.5em, -7em, 2.5em); } .b7 .block-inner div { background-color: #888; } .b7 .block-inner div.top, .b7 .block-inner div.bottom { width: 0.5em; height: 4em; } .b7 .block-inner div.top { transform: rotateX(-90deg) translateY(-3em); } .b7 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-3em) translateZ(0.5em); } .b7 .block-inner div.front:before, .b7 .block-inner div.back:before, .b7 .block-inner div.left:before, .b7 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b7 .block-inner div.front, .b7 .block-inner div.back { width: 0.5em; height: 0.5em; } .b7 .block-inner div.front:before, .b7 .block-inner div.back:before { opacity: 0.2; } .b7 .block-inner div.front { transform: translateZ(3em); } .b7 .block-inner div.left, .b7 .block-inner div.right { width: 4em; height: 0.5em; } .b7 .block-inner div.left:before, .b7 .block-inner div.right:before { opacity: 0.4; } .b7 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, -3.5em); } .b8 { display: inherit; transform: translate3d(9.5em, -3.5em, 1.5em); } .b8 .block-inner div { background-color: #888; } .b8 .block-inner div.top, .b8 .block-inner div.bottom { width: 2em; height: 0.5em; } .b8 .block-inner div.top { transform: rotateX(-90deg) translateY(0.5em); } .b8 .block-inner div.bottom { transform: rotateX(-90deg) translateY(0.5em) translateZ(0.75em); } .b8 .block-inner div.front:before, .b8 .block-inner div.back:before, .b8 .block-inner div.left:before, .b8 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b8 .block-inner div.front, .b8 .block-inner div.back { width: 2em; height: 0.75em; } .b8 .block-inner div.front:before, .b8 .block-inner div.back:before { opacity: 0.2; } .b8 .block-inner div.front { transform: translateZ(-0.5em); } .b8 .block-inner div.left, .b8 .block-inner div.right { width: 0.5em; height: 0.75em; } .b8 .block-inner div.left:before, .b8 .block-inner div.right:before { opacity: 0.4; } .b8 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 1.5em); } .b9 { display: inherit; transform: translate3d(9.5em, -3em, 1.5em); } .b9 .block-inner div { background-color: #474; } .b9 .block-inner div.top, .b9 .block-inner div.bottom { width: 2em; height: 0.5em; } .b9 .block-inner div.top { transform: rotateX(-90deg) translateY(0.5em); } .b9 .block-inner div.bottom { transform: rotateX(-90deg) translateY(0.5em) translateZ(0.5em); } .b9 .block-inner div.front:before, .b9 .block-inner div.back:before, .b9 .block-inner div.left:before, .b9 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b9 .block-inner div.front, .b9 .block-inner div.back { width: 2em; height: 0.5em; } .b9 .block-inner div.front:before, .b9 .block-inner div.back:before { opacity: 0.2; } .b9 .block-inner div.front { transform: translateZ(-0.5em); } .b9 .block-inner div.left, .b9 .block-inner div.right { width: 0.5em; height: 0.5em; } .b9 .block-inner div.left:before, .b9 .block-inner div.right:before { opacity: 0.4; } .b9 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 1.5em); } .b10 { display: inherit; transform: translate3d(8em, -12em, 3em); } .b10 .block-inner div { background-color: #474; } .b10 .block-inner div.top, .b10 .block-inner div.bottom { width: 4em; height: 4em; } .b10 .block-inner div.top { transform: rotateX(-90deg) translateY(-3em); } .b10 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-3em) translateZ(0.5em); } .b10 .block-inner div.front:before, .b10 .block-inner div.back:before, .b10 .block-inner div.left:before, .b10 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b10 .block-inner div.front, .b10 .block-inner div.back { width: 4em; height: 0.5em; } .b10 .block-inner div.front:before, .b10 .block-inner div.back:before { opacity: 0.2; } .b10 .block-inner div.front { transform: translateZ(3em); } .b10 .block-inner div.left, .b10 .block-inner div.right { width: 4em; height: 0.5em; } .b10 .block-inner div.left:before, .b10 .block-inner div.right:before { opacity: 0.4; } .b10 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 0em); } .b11 { display: inherit; transform: translate3d(7.5em, -12em, 2.5em); } .b11 .block-inner div { background-color: #474; } .b11 .block-inner div.top, .b11 .block-inner div.bottom { width: 4.5em; height: 4.5em; } .b11 .block-inner div.top { transform: rotateX(-90deg) translateY(-3.5em); } .b11 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-3.5em) translateZ(0.5em); } .b11 .block-inner div.front:before, .b11 .block-inner div.back:before, .b11 .block-inner div.left:before, .b11 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b11 .block-inner div.front, .b11 .block-inner div.back { width: 4.5em; height: 0.5em; } .b11 .block-inner div.front:before, .b11 .block-inner div.back:before { opacity: 0.2; } .b11 .block-inner div.front { transform: translateZ(3.5em); } .b11 .block-inner div.left, .b11 .block-inner div.right { width: 4.5em; height: 0.5em; } .b11 .block-inner div.left:before, .b11 .block-inner div.right:before { opacity: 0.4; } .b11 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 0em); } .b12 { display: inherit; transform: translate3d(7em, -12em, 2em); } .b12 .block-inner div { background-color: #474; } .b12 .block-inner div.top, .b12 .block-inner div.bottom { width: 5em; height: 5em; } .b12 .block-inner div.top { transform: rotateX(-90deg) translateY(-4em); } .b12 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-4em) translateZ(0.5em); } .b12 .block-inner div.front:before, .b12 .block-inner div.back:before, .b12 .block-inner div.left:before, .b12 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b12 .block-inner div.front, .b12 .block-inner div.back { width: 5em; height: 0.5em; } .b12 .block-inner div.front:before, .b12 .block-inner div.back:before { opacity: 0.2; } .b12 .block-inner div.front { transform: translateZ(4em); } .b12 .block-inner div.left, .b12 .block-inner div.right { width: 5em; height: 0.5em; } .b12 .block-inner div.left:before, .b12 .block-inner div.right:before { opacity: 0.4; } .b12 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 0em); } .b13 { display: inherit; transform: translate3d(6.5em, -12em, 1.5em); } .b13 .block-inner div { background-color: #474; } .b13 .block-inner div.top, .b13 .block-inner div.bottom { width: 5.5em; height: 5.5em; } .b13 .block-inner div.top { transform: rotateX(-90deg) translateY(-4.5em); } .b13 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-4.5em) translateZ(0.5em); } .b13 .block-inner div.front:before, .b13 .block-inner div.back:before, .b13 .block-inner div.left:before, .b13 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b13 .block-inner div.front, .b13 .block-inner div.back { width: 5.5em; height: 0.5em; } .b13 .block-inner div.front:before, .b13 .block-inner div.back:before { opacity: 0.2; } .b13 .block-inner div.front { transform: translateZ(4.5em); } .b13 .block-inner div.left, .b13 .block-inner div.right { width: 5.5em; height: 0.5em; } .b13 .block-inner div.left:before, .b13 .block-inner div.right:before { opacity: 0.4; } .b13 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 0em); } .b14 { display: inherit; transform: translate3d(6em, -12em, 1em); } .b14 .block-inner div { background-color: #474; } .b14 .block-inner div.top, .b14 .block-inner div.bottom { width: 6em; height: 6em; } .b14 .block-inner div.top { transform: rotateX(-90deg) translateY(-5em); } .b14 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-5em) translateZ(1em); } .b14 .block-inner div.front:before, .b14 .block-inner div.back:before, .b14 .block-inner div.left:before, .b14 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b14 .block-inner div.front, .b14 .block-inner div.back { width: 6em; height: 1em; } .b14 .block-inner div.front:before, .b14 .block-inner div.back:before { opacity: 0.2; } .b14 .block-inner div.front { transform: translateZ(5em); } .b14 .block-inner div.left, .b14 .block-inner div.right { width: 6em; height: 1em; } .b14 .block-inner div.left:before, .b14 .block-inner div.right:before { opacity: 0.4; } .b14 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 0em); } .b15 { display: inherit; transform: translate3d(6em, -6em, 0.75em); } .b15 .block-inner div { background-color: #6397a5; } .b15 .block-inner div.top, .b15 .block-inner div.bottom { width: 6em; height: 3em; } .b15 .block-inner div.top { transform: rotateX(-90deg) translateY(-2em); } .b15 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-2em) translateZ(0.75em); } .b15 .block-inner div.front:before, .b15 .block-inner div.back:before, .b15 .block-inner div.left:before, .b15 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b15 .block-inner div.front, .b15 .block-inner div.back { width: 6em; height: 0.75em; } .b15 .block-inner div.front:before, .b15 .block-inner div.back:before { opacity: 0.2; } .b15 .block-inner div.front { transform: translateZ(2em); } .b15 .block-inner div.left, .b15 .block-inner div.right { width: 3em; height: 0.75em; } .b15 .block-inner div.left:before, .b15 .block-inner div.right:before { opacity: 0.4; } .b15 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 3em); } .b16 { display: inherit; transform: translate3d(4em, -12em, 0.75em); } .b16 .block-inner div { background-color: #6397a5; } .b16 .block-inner div.top, .b16 .block-inner div.bottom { width: 2em; height: 9em; } .b16 .block-inner div.top { transform: rotateX(-90deg) translateY(-8em); } .b16 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-8em) translateZ(0.75em); } .b16 .block-inner div.front:before, .b16 .block-inner div.back:before, .b16 .block-inner div.left:before, .b16 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b16 .block-inner div.front, .b16 .block-inner div.back { width: 2em; height: 0.75em; } .b16 .block-inner div.front:before, .b16 .block-inner div.back:before { opacity: 0.2; } .b16 .block-inner div.front { transform: translateZ(8em); } .b16 .block-inner div.left, .b16 .block-inner div.right { width: 9em; height: 0.75em; } .b16 .block-inner div.left:before, .b16 .block-inner div.right:before { opacity: 0.4; } .b16 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, -7em); } .b17 { display: inherit; transform: translate3d(3em, -11.5em, 3.5em); } .b17 .block-inner div { background-color: #888; } .b17 .block-inner div.top, .b17 .block-inner div.bottom { width: 0.5em; height: 0.5em; } .b17 .block-inner div.top { transform: rotateX(-90deg) translateY(0.5em); } .b17 .block-inner div.bottom { transform: rotateX(-90deg) translateY(0.5em) translateZ(1.5em); } .b17 .block-inner div.front:before, .b17 .block-inner div.back:before, .b17 .block-inner div.left:before, .b17 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b17 .block-inner div.front, .b17 .block-inner div.back { width: 0.5em; height: 1.5em; } .b17 .block-inner div.front:before, .b17 .block-inner div.back:before { opacity: 0.2; } .b17 .block-inner div.front { transform: translateZ(-0.5em); } .b17 .block-inner div.left, .b17 .block-inner div.right { width: 0.5em; height: 1.5em; } .b17 .block-inner div.left:before, .b17 .block-inner div.right:before { opacity: 0.4; } .b17 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 0em); } .b18 { display: inherit; transform: translate3d(3em, -10em, 3.5em); } .b18 .block-inner div { background-color: #888; } .b18 .block-inner div.top, .b18 .block-inner div.bottom { width: 0.5em; height: 0.5em; } .b18 .block-inner div.top { transform: rotateX(-90deg) translateY(0.5em); } .b18 .block-inner div.bottom { transform: rotateX(-90deg) translateY(0.5em) translateZ(1.5em); } .b18 .block-inner div.front:before, .b18 .block-inner div.back:before, .b18 .block-inner div.left:before, .b18 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b18 .block-inner div.front, .b18 .block-inner div.back { width: 0.5em; height: 1.5em; } .b18 .block-inner div.front:before, .b18 .block-inner div.back:before { opacity: 0.2; } .b18 .block-inner div.front { transform: translateZ(-0.5em); } .b18 .block-inner div.left, .b18 .block-inner div.right { width: 0.5em; height: 1.5em; } .b18 .block-inner div.left:before, .b18 .block-inner div.right:before { opacity: 0.4; } .b18 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 0em); } .b19 { display: inherit; transform: translate3d(3em, -11.5em, 4em); } .b19 .block-inner div { background-color: #888; } .b19 .block-inner div.top, .b19 .block-inner div.bottom { width: 0.5em; height: 2em; } .b19 .block-inner div.top { transform: rotateX(-90deg) translateY(-1em); } .b19 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-1em) translateZ(0.5em); } .b19 .block-inner div.front:before, .b19 .block-inner div.back:before, .b19 .block-inner div.left:before, .b19 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b19 .block-inner div.front, .b19 .block-inner div.back { width: 0.5em; height: 0.5em; } .b19 .block-inner div.front:before, .b19 .block-inner div.back:before { opacity: 0.2; } .b19 .block-inner div.front { transform: translateZ(1em); } .b19 .block-inner div.left, .b19 .block-inner div.right { width: 2em; height: 0.5em; } .b19 .block-inner div.left:before, .b19 .block-inner div.right:before { opacity: 0.4; } .b19 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, -1.5em); } .b20 { display: inherit; transform: translate3d(0em, -12em, 3.5em); } .b20 .block-inner div { background-color: #474; } .b20 .block-inner div.top, .b20 .block-inner div.bottom { width: 3em; height: 1em; } .b20 .block-inner div.top { transform: rotateX(-90deg) translateY(0em); } .b20 .block-inner div.bottom { transform: rotateX(-90deg) translateY(0em) translateZ(1.5em); } .b20 .block-inner div.front:before, .b20 .block-inner div.back:before, .b20 .block-inner div.left:before, .b20 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b20 .block-inner div.front, .b20 .block-inner div.back { width: 3em; height: 1.5em; } .b20 .block-inner div.front:before, .b20 .block-inner div.back:before { opacity: 0.2; } .b20 .block-inner div.front { transform: translateZ(0em); } .b20 .block-inner div.left, .b20 .block-inner div.right { width: 1em; height: 1.5em; } .b20 .block-inner div.left:before, .b20 .block-inner div.right:before { opacity: 0.4; } .b20 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 2em); } .b21 { display: inherit; transform: translate3d(2em, -10em, 3.5em); } .b21 .block-inner div { background-color: #474; } .b21 .block-inner div.top, .b21 .block-inner div.bottom { width: 1em; height: 4em; } .b21 .block-inner div.top { transform: rotateX(-90deg) translateY(-3em); } .b21 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-3em) translateZ(1.5em); } .b21 .block-inner div.front:before, .b21 .block-inner div.back:before, .b21 .block-inner div.left:before, .b21 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b21 .block-inner div.front, .b21 .block-inner div.back { width: 1em; height: 1.5em; } .b21 .block-inner div.front:before, .b21 .block-inner div.back:before { opacity: 0.2; } .b21 .block-inner div.front { transform: translateZ(3em); } .b21 .block-inner div.left, .b21 .block-inner div.right { width: 4em; height: 1.5em; } .b21 .block-inner div.left:before, .b21 .block-inner div.right:before { opacity: 0.4; } .b21 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, -3em); } .b22 { display: inherit; transform: translate3d(0em, -11em, 3.5em); } .b22 .block-inner div { background-color: #474; } .b22 .block-inner div.top, .b22 .block-inner div.bottom { width: 1em; height: 5em; } .b22 .block-inner div.top { transform: rotateX(-90deg) translateY(-4em); } .b22 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-4em) translateZ(1.5em); } .b22 .block-inner div.front:before, .b22 .block-inner div.back:before, .b22 .block-inner div.left:before, .b22 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b22 .block-inner div.front, .b22 .block-inner div.back { width: 1em; height: 1.5em; } .b22 .block-inner div.front:before, .b22 .block-inner div.back:before { opacity: 0.2; } .b22 .block-inner div.front { transform: translateZ(4em); } .b22 .block-inner div.left, .b22 .block-inner div.right { width: 5em; height: 1.5em; } .b22 .block-inner div.left:before, .b22 .block-inner div.right:before { opacity: 0.4; } .b22 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, -4em); } .b23 { display: inherit; transform: translate3d(0.5em, -11.5em, 4em); } .b23 .block-inner div { background-color: #474; } .b23 .block-inner div.top, .b23 .block-inner div.bottom { width: 2.5em; height: 2em; } .b23 .block-inner div.top { transform: rotateX(-90deg) translateY(-1em); } .b23 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-1em) translateZ(0.5em); } .b23 .block-inner div.front:before, .b23 .block-inner div.back:before, .b23 .block-inner div.left:before, .b23 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b23 .block-inner div.front, .b23 .block-inner div.back { width: 2.5em; height: 0.5em; } .b23 .block-inner div.front:before, .b23 .block-inner div.back:before { opacity: 0.2; } .b23 .block-inner div.front { transform: translateZ(1em); } .b23 .block-inner div.left, .b23 .block-inner div.right { width: 2em; height: 0.5em; } .b23 .block-inner div.left:before, .b23 .block-inner div.right:before { opacity: 0.4; } .b23 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 0.5em); } .b24 { display: inherit; transform: translate3d(0.5em, -9.5em, 4em); } .b24 .block-inner div { background-color: #474; } .b24 .block-inner div.top, .b24 .block-inner div.bottom { width: 2em; height: 3.5em; } .b24 .block-inner div.top { transform: rotateX(-90deg) translateY(-2.5em); } .b24 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-2.5em) translateZ(0.5em); } .b24 .block-inner div.front:before, .b24 .block-inner div.back:before, .b24 .block-inner div.left:before, .b24 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b24 .block-inner div.front, .b24 .block-inner div.back { width: 2em; height: 0.5em; } .b24 .block-inner div.front:before, .b24 .block-inner div.back:before { opacity: 0.2; } .b24 .block-inner div.front { transform: translateZ(2.5em); } .b24 .block-inner div.left, .b24 .block-inner div.right { width: 3.5em; height: 0.5em; } .b24 .block-inner div.left:before, .b24 .block-inner div.right:before { opacity: 0.4; } .b24 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, -1.5em); } .b25 { display: inherit; transform: translate3d(2em, -6em, 3.5em); } .b25 .block-inner div { background-color: #888; } .b25 .block-inner div.top, .b25 .block-inner div.bottom { width: 0.5em; height: 0.5em; } .b25 .block-inner div.top { transform: rotateX(-90deg) translateY(0.5em); } .b25 .block-inner div.bottom { transform: rotateX(-90deg) translateY(0.5em) translateZ(1.5em); } .b25 .block-inner div.front:before, .b25 .block-inner div.back:before, .b25 .block-inner div.left:before, .b25 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b25 .block-inner div.front, .b25 .block-inner div.back { width: 0.5em; height: 1.5em; } .b25 .block-inner div.front:before, .b25 .block-inner div.back:before { opacity: 0.2; } .b25 .block-inner div.front { transform: translateZ(-0.5em); } .b25 .block-inner div.left, .b25 .block-inner div.right { width: 0.5em; height: 1.5em; } .b25 .block-inner div.left:before, .b25 .block-inner div.right:before { opacity: 0.4; } .b25 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 0em); } .b26 { display: inherit; transform: translate3d(0.5em, -6em, 3.5em); } .b26 .block-inner div { background-color: #888; } .b26 .block-inner div.top, .b26 .block-inner div.bottom { width: 0.5em; height: 0.5em; } .b26 .block-inner div.top { transform: rotateX(-90deg) translateY(0.5em); } .b26 .block-inner div.bottom { transform: rotateX(-90deg) translateY(0.5em) translateZ(1.5em); } .b26 .block-inner div.front:before, .b26 .block-inner div.back:before, .b26 .block-inner div.left:before, .b26 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b26 .block-inner div.front, .b26 .block-inner div.back { width: 0.5em; height: 1.5em; } .b26 .block-inner div.front:before, .b26 .block-inner div.back:before { opacity: 0.2; } .b26 .block-inner div.front { transform: translateZ(-0.5em); } .b26 .block-inner div.left, .b26 .block-inner div.right { width: 0.5em; height: 1.5em; } .b26 .block-inner div.left:before, .b26 .block-inner div.right:before { opacity: 0.4; } .b26 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 0em); } .b27 { display: inherit; transform: translate3d(0.5em, -6em, 4em); } .b27 .block-inner div { background-color: #888; } .b27 .block-inner div.top, .b27 .block-inner div.bottom { width: 2em; height: 0.5em; } .b27 .block-inner div.top { transform: rotateX(-90deg) translateY(0.5em); } .b27 .block-inner div.bottom { transform: rotateX(-90deg) translateY(0.5em) translateZ(0.5em); } .b27 .block-inner div.front:before, .b27 .block-inner div.back:before, .b27 .block-inner div.left:before, .b27 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b27 .block-inner div.front, .b27 .block-inner div.back { width: 2em; height: 0.5em; } .b27 .block-inner div.front:before, .b27 .block-inner div.back:before { opacity: 0.2; } .b27 .block-inner div.front { transform: translateZ(-0.5em); } .b27 .block-inner div.left, .b27 .block-inner div.right { width: 0.5em; height: 0.5em; } .b27 .block-inner div.left:before, .b27 .block-inner div.right:before { opacity: 0.4; } .b27 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 1.5em); } .b28 { display: inherit; transform: translate3d(3em, -3em, 1em); } .b28 .block-inner div { background-color: #474; } .b28 .block-inner div.top, .b28 .block-inner div.bottom { width: 9em; height: 3em; } .b28 .block-inner div.top { transform: rotateX(-90deg) translateY(-2em); } .b28 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-2em) translateZ(1em); } .b28 .block-inner div.front:before, .b28 .block-inner div.back:before, .b28 .block-inner div.left:before, .b28 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b28 .block-inner div.front, .b28 .block-inner div.back { width: 9em; height: 1em; } .b28 .block-inner div.front:before, .b28 .block-inner div.back:before { opacity: 0.2; } .b28 .block-inner div.front { transform: translateZ(2em); } .b28 .block-inner div.left, .b28 .block-inner div.right { width: 3em; height: 1em; } .b28 .block-inner div.left:before, .b28 .block-inner div.right:before { opacity: 0.4; } .b28 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 6em); } .b29 { display: inherit; transform: translate3d(0em, -12em, 2em); } .b29 .block-inner div { background-color: #474; } .b29 .block-inner div.top, .b29 .block-inner div.bottom { width: 4em; height: 7em; } .b29 .block-inner div.top { transform: rotateX(-90deg) translateY(-6em); } .b29 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-6em) translateZ(2em); } .b29 .block-inner div.front:before, .b29 .block-inner div.back:before, .b29 .block-inner div.left:before, .b29 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b29 .block-inner div.front, .b29 .block-inner div.back { width: 4em; height: 2em; } .b29 .block-inner div.front:before, .b29 .block-inner div.back:before { opacity: 0.2; } .b29 .block-inner div.front { transform: translateZ(6em); } .b29 .block-inner div.left, .b29 .block-inner div.right { width: 7em; height: 2em; } .b29 .block-inner div.left:before, .b29 .block-inner div.right:before { opacity: 0.4; } .b29 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, -3em); } .b30 { display: inherit; transform: translate3d(0em, -5em, 1.5em); } .b30 .block-inner div { background-color: #474; } .b30 .block-inner div.top, .b30 .block-inner div.bottom { width: 4em; height: 0.5em; } .b30 .block-inner div.top { transform: rotateX(-90deg) translateY(0.5em); } .b30 .block-inner div.bottom { transform: rotateX(-90deg) translateY(0.5em) translateZ(0.5em); } .b30 .block-inner div.front:before, .b30 .block-inner div.back:before, .b30 .block-inner div.left:before, .b30 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b30 .block-inner div.front, .b30 .block-inner div.back { width: 4em; height: 0.5em; } .b30 .block-inner div.front:before, .b30 .block-inner div.back:before { opacity: 0.2; } .b30 .block-inner div.front { transform: translateZ(-0.5em); } .b30 .block-inner div.left, .b30 .block-inner div.right { width: 0.5em; height: 0.5em; } .b30 .block-inner div.left:before, .b30 .block-inner div.right:before { opacity: 0.4; } .b30 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 3.5em); } .b31 { display: inherit; transform: translate3d(0em, -5em, 1em); } .b31 .block-inner div { background-color: #474; } .b31 .block-inner div.top, .b31 .block-inner div.bottom { width: 4em; height: 5em; } .b31 .block-inner div.top { transform: rotateX(-90deg) translateY(-4em); } .b31 .block-inner div.bottom { transform: rotateX(-90deg) translateY(-4em) translateZ(1em); } .b31 .block-inner div.front:before, .b31 .block-inner div.back:before, .b31 .block-inner div.left:before, .b31 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b31 .block-inner div.front, .b31 .block-inner div.back { width: 4em; height: 1em; } .b31 .block-inner div.front:before, .b31 .block-inner div.back:before { opacity: 0.2; } .b31 .block-inner div.front { transform: translateZ(4em); } .b31 .block-inner div.left, .b31 .block-inner div.right { width: 5em; height: 1em; } .b31 .block-inner div.left:before, .b31 .block-inner div.right:before { opacity: 0.4; } .b31 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, -1em); } .b32 { display: inherit; transform: translate3d(3.33em, -8.66em, 2.5em); } .b32 .block-inner div { background-color: #753; } .b32 .block-inner div.top, .b32 .block-inner div.bottom { width: 0.33em; height: 0.33em; } .b32 .block-inner div.top { transform: rotateX(-90deg) translateY(0.67em); } .b32 .block-inner div.bottom { transform: rotateX(-90deg) translateY(0.67em) translateZ(0.5em); } .b32 .block-inner div.front:before, .b32 .block-inner div.back:before, .b32 .block-inner div.left:before, .b32 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b32 .block-inner div.front, .b32 .block-inner div.back { width: 0.33em; height: 0.5em; } .b32 .block-inner div.front:before, .b32 .block-inner div.back:before { opacity: 0.2; } .b32 .block-inner div.front { transform: translateZ(-0.67em); } .b32 .block-inner div.left, .b32 .block-inner div.right { width: 0.33em; height: 0.5em; } .b32 .block-inner div.left:before, .b32 .block-inner div.right:before { opacity: 0.4; } .b32 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 0em); } .b33 { display: inherit; transform: translate3d(3.25em, -8.75em, 3.25em); } .b33 .block-inner div { background-color: #6a6; } .b33 .block-inner div.top, .b33 .block-inner div.bottom { width: 0.5em; height: 0.5em; } .b33 .block-inner div.top { transform: rotateX(-90deg) translateY(0.5em); } .b33 .block-inner div.bottom { transform: rotateX(-90deg) translateY(0.5em) translateZ(0.75em); } .b33 .block-inner div.front:before, .b33 .block-inner div.back:before, .b33 .block-inner div.left:before, .b33 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b33 .block-inner div.front, .b33 .block-inner div.back { width: 0.5em; height: 0.75em; } .b33 .block-inner div.front:before, .b33 .block-inner div.back:before { opacity: 0.2; } .b33 .block-inner div.front { transform: translateZ(-0.5em); } .b33 .block-inner div.left, .b33 .block-inner div.right { width: 0.5em; height: 0.75em; } .b33 .block-inner div.left:before, .b33 .block-inner div.right:before { opacity: 0.4; } .b33 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 0em); } .b34 { display: inherit; transform: translate3d(3.33em, -7.66em, 2.5em); } .b34 .block-inner div { background-color: #753; } .b34 .block-inner div.top, .b34 .block-inner div.bottom { width: 0.33em; height: 0.33em; } .b34 .block-inner div.top { transform: rotateX(-90deg) translateY(0.67em); } .b34 .block-inner div.bottom { transform: rotateX(-90deg) translateY(0.67em) translateZ(0.5em); } .b34 .block-inner div.front:before, .b34 .block-inner div.back:before, .b34 .block-inner div.left:before, .b34 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b34 .block-inner div.front, .b34 .block-inner div.back { width: 0.33em; height: 0.5em; } .b34 .block-inner div.front:before, .b34 .block-inner div.back:before { opacity: 0.2; } .b34 .block-inner div.front { transform: translateZ(-0.67em); } .b34 .block-inner div.left, .b34 .block-inner div.right { width: 0.33em; height: 0.5em; } .b34 .block-inner div.left:before, .b34 .block-inner div.right:before { opacity: 0.4; } .b34 .block-inner div.right { transform: rotateY(-270deg) translate3d(1em, 0, 0em); } .b35 { display: inherit; transform: translate3d(3.25em, -7.75em, 3.5em); } .b35 .block-inner div { background-color: #6a6; } .b35 .block-inner div.top, .b35 .block-inner div.bottom { width: 0.5em; height: 0.5em; } .b35 .block-inner div.top { transform: rotateX(-90deg) translateY(0.5em); } .b35 .block-inner div.bottom { transform: rotateX(-90deg) translateY(0.5em) translateZ(1em); } .b35 .block-inner div.front:before, .b35 .block-inner div.back:before, .b35 .block-inner div.left:before, .b35 .block-inner div.right:before { background-color: #000; content: ""; width: 100%; height: 100%; } .b35 .block-inner div.front, .b35 .block-inner div.back { width: 0.5em; height: 1em; } .b35 .block-inner div.front:before, .b35 .block-inner div.back:before { opacity: 0.2; } .b35 .block-inner div.front { transform: translateZ(-0.5em); } .b35 .block-inner div.left, .b35 .block-inner div.right { width: 0.5em; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0