-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
86 lines (72 loc) · 1.76 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
82
83
84
85
86
body {
margin: 0px;
padding: 100px 0px;
background-color: #F7E8ED;
transition:background-color 0.2s linear;
}
.wrapper {
width: 1190px;
margin: 0px auto;
perspective: 1000px;
transform-style:preserve-3d;
}
.wrapper .inner {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
transform-style: preserve-3d;
}
.wrapper .inner .item {
width: 150px;
height: 150px;
margin: 12px 0px;
position: relative;
transform-style: preserve-3d;
transition: transform 0.4s ease-in-out;
}
.wrapper .inner .item div {
width: 100%;
height: 100%;
position: absolute;
left: 0px;
top: 0px;
background: url('./images/1.png') no-repeat center center;
background-color: #f44336;
border: 10px solid rgba(0, 0, 0, .1);
box-sizing: border-box;
}
.wrapper .inner .item.top {
transform: translateZ(75px) rotatex(-180deg);
}
.wrapper .inner .item.bottom {
transform: translateZ(75px) rotatex(180deg);
}
.wrapper .inner .item.left {
transform: translateZ(75px) rotatey(180deg);
}
.wrapper .inner .item.right {
transform: translateZ(75px) rotatey(-180deg);
}
.wrapper .inner .item div:nth-child(1) {
font-size: 35px;
color: #fff;
font-weight: bold;
line-height: 150px;
text-align: center;
transform: translateZ(75px);
}
.wrapper .inner .item div:nth-child(2) {
transform: translateZ(-75px);
}
.wrapper .inner .item div:nth-child(3) {
transform: rotatex(90deg) translateZ(75px);
}
.wrapper .inner .item div:nth-child(4) {
transform: rotatex(-90deg) translateZ(75px);
}
.wrapper .inner .item div:nth-child(5) {
transform: rotatey(90deg) translateZ(75px);
}
.wrapper .inner .item div:nth-child(6) {
transform: rotatey(-90deg) translateZ(75px);
}