-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtransform.html
More file actions
149 lines (148 loc) · 3.27 KB
/
transform.html
File metadata and controls
149 lines (148 loc) · 3.27 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js" charset="utf-8"></script>
<title>Document</title>
<style media="screen">
* {
padding: 0;
margin: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
body {
transform-style: preserve-3d;
}
@-webkit-keyframes identifier {
from {
color: #fff;
width: 0;
}
to {
width: 100%;
}
}
@keyframes identifier {
from {
width: 0;
}
to {
width: 100%;
}
}
.active {
animation: identifier .8s ease-out;
transition: animation .8s ease;
}
.wraper {
color: #fff;
background-color: rgba(255,70,70,0.8);
padding: 10px;
border: 1px solid red;
}
.ul-list li {
background-color: blue;
}
.active {
color: red;
background-color: green !important;
}
.un {
display: inline-block;
width: 60px;
height: 28px;
line-height: 28px;
}
ul, li {
list-style: none;
padding: 0;
margin: 0;
}
.list-item {
position: relative;
padding: 0;
margin: 0 auto;
width: 1200px;
height: 900px;
transform: perspective(2000px) rotate3d(1,1,0,72deg);
transform-style: preserve-3d;
transform-origin: center;
}
.list-item [class^=item] {
position: absolute;
display: flex;
width: 300px;
height: 300px;
align-items: center;
justify-content: center;
color: #fff;
}
.list-item .item-1 {
top: 300px;
left: 0px;
background-color: #106dcb;
transform-origin: right center 0;
transform: rotate3d(0,1,0,90deg);
}
.list-item .item-2 {
top: 300px;
left: 300px;
background-color: #13b5b1;
}
.list-item .item-3 {
top: 300px;
left: 600px;
background-color: #eb6100;
transform-origin: left center 0;
transform: rotate3d(0,1,0,-90deg);
transform-style: preserve-3d;
}
.list-item .item-4 {
top: 0px;
left: 300px;
background-color: #362e2b;
transform-origin: left center 0;
transform: rotate3d(0,1,0,-90deg);
}
.list-item .item-5 {
top: 0px;
left: 300px;
background-color: #eb6877;
transform-origin: center bottom 0;
transform: rotate3d(1,0,0,-90deg);
}
.list-item .item-6 {
top: 600px;
left: 300px;
background-color: #c0d2e3;
transform-origin: center top 0;
transform: rotate3d(1,0,0,90deg);
}
</style>
</head>
<body>
<!-- <div class="wraper">
<ul class="ul-list">
<li>左</li>
<li>右</li>
<li>上</li>
<li>前</li>
<li>下</li>
<li>后</li>
</ul>
</div> -->
<ul class="list-item">
<li class="item-1">1</li>
<li class="item-2">2</li>
<li class="item-3">3<div class="item-4">4</div></li>
<li class="item-5">5</li>
<li class="item-6">6</li>
</ul>
</body>
<script type="text/javascript">
</script>
</html>