12 backface-visibility: visible;
13 perspective-origin:
150%
150%;
14 transform-style: preserve-
3d;
24 font-family: sans-serif;
30 background: rgba(
0,
0,
0,
0.3);
31 transform: translate3d(
0,
0,
50px);
34 background: rgba(
0,
255,
0,
1);
36 transform: translate3d(
0,
0, -
50px) rotate3d(
0,
1,
0,
180deg);
39 background: rgba(
196,
0,
0,
0.7);
40 transform: translate3d(
50px,
0,
0) rotate3d(
0,
1,
0,
90deg);
43 background: rgba(
0,
0,
196,
0.7);
44 transform: translate3d(-
50px,
0,
0) rotate3d(
0,
1,
0, -
90deg);
47 background: rgba(
196,
196,
0,
0.7);
48 transform: translate3d(
0, -
50px,
0) rotate3d(
1,
0,
0,
90deg);
51 background: rgba(
196,
0,
196,
0.7);
52 transform: translate3d(
0,
50px,
0) rotate3d(
1,
0,
0, -
90deg);
55 transform: scale3d(
0.5,
1,
1);
58 transform: scale3d(
1,
0.5,
1);
61 transform: scale3d(
1,
1,
0.5);
65 <div class=
"container">
66 <div class=
"cube scaleY">
67 <div class=
"face front">1</div>
68 <div class=
"face back">2</div>
69 <div class=
"face right">3</div>
70 <div class=
"face left">4</div>
71 <div class=
"face top">5</div>
72 <div class=
"face bottom">6</div>
74 <div class=
"cube scaleX scaleZ">
75 <div class=
"face front">1</div>
76 <div class=
"face back">2</div>
77 <div class=
"face right">3</div>
78 <div class=
"face left">4</div>
79 <div class=
"face top">5</div>
80 <div class=
"face bottom">6</div>