@@ -19,7 +19,12 @@ class App extends Component {
19
19
const cellStyle = {
20
20
border : '20px solid #fff' ,
21
21
borderWidth : '40px 20px' ,
22
- boxShadow : '-1px 1px 5px rgba(0, 0, 0, 0.08)' ,
22
+ boxShadow : '-1px 1px 5px rgba(0, 0, 0, 0.1)' ,
23
+ } ;
24
+
25
+ const style = {
26
+ transformStyle : 'flat' ,
27
+ padding : '20px' ,
23
28
} ;
24
29
25
30
return (
@@ -28,8 +33,8 @@ class App extends Component {
28
33
stackItemsAnimation = { {
29
34
properties ( ) {
30
35
return {
31
- translateX : getRandomInt ( - 20 , 20 ) ,
32
- translateY : getRandomInt ( - 20 , 20 ) ,
36
+ translateX : getRandomInt ( - 60 , 60 ) ,
37
+ translateY : getRandomInt ( - 60 , 60 ) ,
33
38
rotateZ : getRandomInt ( - 10 , 10 ) ,
34
39
} ;
35
40
} ,
@@ -50,14 +55,46 @@ class App extends Component {
50
55
width : '800px' ,
51
56
} }
52
57
>
53
- < Cell layerStyle = { cellStyle } layers = { [ img7 , img1 , img6 , img1 ] } />
54
- < Cell layerStyle = { cellStyle } layers = { [ img2 , img1 , img4 , img5 ] } />
55
- < Cell layerStyle = { cellStyle } layers = { [ img7 , img5 , img1 , img1 ] } />
56
- < Cell layerStyle = { cellStyle } layers = { [ img3 , img3 , img3 , img3 ] } />
57
- < Cell layerStyle = { cellStyle } layers = { [ img5 , img7 , img5 , img4 ] } />
58
- < Cell layerStyle = { cellStyle } layers = { [ img3 , img6 , img5 , img5 ] } />
59
- < Cell layerStyle = { cellStyle } layers = { [ img6 , img1 , img3 , img4 ] } />
60
- < Cell layerStyle = { cellStyle } layers = { [ img1 , img5 , img2 , img7 ] } />
58
+ < Cell
59
+ style = { style }
60
+ layerStyle = { cellStyle }
61
+ layers = { [ img7 , img1 , img6 , img1 ] }
62
+ />
63
+ < Cell
64
+ style = { style }
65
+ layerStyle = { cellStyle }
66
+ layers = { [ img2 , img1 , img4 , img5 ] }
67
+ />
68
+ < Cell
69
+ style = { style }
70
+ layerStyle = { cellStyle }
71
+ layers = { [ img7 , img5 , img1 , img1 ] }
72
+ />
73
+ < Cell
74
+ style = { style }
75
+ layerStyle = { cellStyle }
76
+ layers = { [ img3 , img3 , img3 , img3 ] }
77
+ />
78
+ < Cell
79
+ style = { style }
80
+ layerStyle = { cellStyle }
81
+ layers = { [ img5 , img7 , img5 , img4 ] }
82
+ />
83
+ < Cell
84
+ style = { style }
85
+ layerStyle = { cellStyle }
86
+ layers = { [ img3 , img6 , img5 , img5 ] }
87
+ />
88
+ < Cell
89
+ style = { style }
90
+ layerStyle = { cellStyle }
91
+ layers = { [ img6 , img1 , img3 , img4 ] }
92
+ />
93
+ < Cell
94
+ style = { style }
95
+ layerStyle = { cellStyle }
96
+ layers = { [ img1 , img5 , img2 , img7 ] }
97
+ />
61
98
</ IsometricGrid >
62
99
) ;
63
100
}
0 commit comments