-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
173 lines (173 loc) · 3.42 KB
/
index.html
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<!-- <link href="3Dxuanzhuan.css" rel="stylesheet" type="text/css"> -->
<title>3D旋转</title>
<style>
*{
padding:0;
margin:0;
}
body{
perspective:1000px;
background-color:#000;
width:100%;
height:100%;
}
.kuang{
width:100%;
height:100%;
position:absolute;
top:0;
left:0;
/* border:5px solid red;*/
}
#jianbian{
width:100%;
height:100%;
background:linear-gradient(45deg,#6fc7b5 0%,#13bdce 20%,#0094d9 40%,#5a3694 60%,#ee4d74 80%,#f58c58 100%);
background-size:400%;
background-position:0% 100%;
animation:jianbian 4s ease-in-out infinite;
}
@keyframes jianbian {
0%{
background-position:0% 100%;
}
50%{
background-position:100% 0%;
}
100%{
background-position:0% 100%;
}
}
/*这里本来是让超链接图片居中用的但是div里的东西移不动所以不用这个方法*/
/*a{
position:absolute;
top:100px;
left:100px;
}*/
#ke{
position:relative;
}
#warrapper{
position:relative;
top:0;
left:0;
width:200px;
height:200px;
transform-origin:50% 50% 200px;
transform-style:preserve-3d;
transition:2s;
transform: translateX(50px) translateY(300px) translateZ(50px);
}
.pic{
position:absolute;
top:50px;
left:50px;
height:200px;
width:200px;
transition:transform 0.3s ease-in;
}
#front{
transform:translateZ(100px);
}
#back{
transform:translateZ(-100px) rotateY(180deg);
}
#top{
transform:translateY(-100px) rotateX(90deg);
}
#bottom{
transform:translateY(100px) rotateX(-90deg);
}
#left{
transform:translateX(-100px) rotateY(-90deg);
}
#right{
transform:translateX(100px) rotateY(90deg);
}
.bian{
position:absolute;
border:2px solid rgb(7,168,222);
width:300px;
height:300px;
}
#front1{
transform:translateZ(150px);
}
#back1{
transform:translateZ(-150px) rotateY(180deg);
}
#top1{
transform:translateY(-150px) rotateX(90deg);
}
#bottom1{
transform:translateY(150px) rotateX(-90deg);
}
#left1{
transform:translateX(-150px) rotateY(-90deg);
}
#right1{
transform:translateX(150px) rotateY(90deg);
}
img{
width:200px;
height:200px;
}
#ke{
position:relative;
width: 400px;
height:700px;
margin:100px auto;
transform-style:preserve-3d;
/*transform:rotateX(-600deg) rotateY(13deg) rotateZ(50deg);*/
animation:rot 5s infinite linear;
}
@keyframes rot {
0%{
transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
}
100%{
transform: rotateX(360deg) rotateY(360deg) rotateZ(0deg);
}
}
#p1Text{
color:white;
font-size:25px;
font-weight:100;
position:absolute;
left:68%;
top:85%;
}
</style>
</head>
<body>
<div id="jianbian">
<div id="ke">
<div id="warrapper">
<div class="bian" id="front1"></div>
<div class="bian" id="back1"></div>
<div class="bian" id="left1"></div>
<div class="bian" id="right1"></div>
<div class="bian" id="top1"></div>
<div class="bian" id="bottom1"></div>
<div class="pic" id="front">
<a href="http://www.baidu.com"><img src="img_1.jpg"></a>
</div>
<div class="pic" id="back"><img src="img_2.jpg">
</div>
<div class="pic" id="left"><img src="img_5.jpg">
</div>
<div class="pic" id="right"><img src="img_6.jpg">
</div>
<div class="pic" id="top"><img src="img_3.jpg">
</div>
<div class="pic" id="bottom"><img src="img_4.jpg">
</div>
</div>
</div>
<div id="p1Text">powered by——class one group four</div>
</div>
</body>
</html>