-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
81 lines (77 loc) · 1.29 KB
/
index.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
body {
padding:0;
margin:0 0 30px 0;
}
#canvas {
margin:0;
height: 3600px;
/*background-color: rgba(50, 100, 150, 0.2);*/
zoom:.3
}
.row {
position:absolute;
top: 1300px;
}
.instance {
width:100px;
height:150px;
position:absolute;
left: 2200px;
top: 0;
perspective: 250px;
perspective-origin: 50% 50%;
zoom: .7;
}
.rect, .rectWrap {
position: relative;
margin: 0 auto;
height: 100%;
width: 100%;
transition: transform 2s linear;
transform-style: preserve-3d;
}
.rect > div {
position: absolute;
margin:0;
background-color: rgba(200, 200, 200, 0.5);
border: 1px solid #999;
}
.rect .front,
.rect .back {
height: 148px;
width: 98px;
}
.rect .right,
.rect .left {
height: 148px;
width: 98px;
left:25px;
}
.rect .top,
.rect .bottom {
width: 98px;
height: 98px;
top: 25px;
}
.rect .top {
transform: rotateX(90deg) translateZ(75px);
}
.rect .front {
transform: translateZ(50px);
background-color: rgba(90, 180, 255, 0.3);
}
.rect .left {
transform: rotateY(90deg) translateZ(25px);
}
.rect .right {
transform: rotateY(-90deg) translateZ(75px);
}
.rect .back {
transform: rotateY(180deg) translateZ(50px);
}
.rect .bottom {
transform: rotateX(-90deg) translateZ(75px) rotate(180deg);
}
.rect > div {
transition: transform 0.2s ease-in;
}