-
Notifications
You must be signed in to change notification settings - Fork 13
/
cssCube.html
117 lines (117 loc) · 2.61 KB
/
cssCube.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
<!DOCTYPE html>
<html>
<head>
<title>CSS3实现全景浏览</title>
<meta charset='utf-8' />
<meta name='viewport' content='width=device-width, initial-scale=1, user-scalable=no' />
<style type="text/css">
.container {
width: 640px;
margin: 50px auto;
}
.stage {
position: relative;
width: 500px;
height: 500px;
margin: 0 auto;
transform-style: preserve-3d;
/*perspective: 20px;*/
}
.controller {
transform-style: preserve-3d;
/*transform: translateZ(20px);*/
/*transform: rotateX(-88deg);*/
}
.wrap {
position: relative;
width: 130px;
height: 400px;
margin: auto;
transform-style: preserve-3d;
/*animation: cubeRotate 15s linear infinite;*/
}
@keyframes cubeRotate {
form {
transform: rotateY(0deg);
}
to {
transform: rotateY(360deg);
}
}
.side {
position: absolute;
width: 130px;
height: 800px;
left: -1px;
top: -1px;
/*backface-visibility: hidden;*/
}
.side1 {
transform: translate3d(0, 0, -100px);
background: url(public/images/7.jpg) 0 0 no-repeat;
background-size: cover;
}
.side2 {
transform: translate3d(85px, 0, -50px) rotate3d(0, 1, 0, -60deg);
background: url(public/images/7.jpg) -130px 0 no-repeat;
background-size: cover;
}
.side3 {
transform: translate3d(85px, 0, 50px) rotate3d(0, 1, 0, -120deg);
background: url(public/images/7.jpg) -260px 0 no-repeat;
background-size: cover;
}
.side4 {
transform: translate3d(0, 0, 100px);
background: url(public/images/7.jpg) -390px 0 no-repeat;
background-size: cover;
}
.side5 {
transform: translate3d(-85px, 0, 50px) rotate3d(0, 1, 0, 120deg);
background: url(public/images/7.jpg) -520px 0 no-repeat;
background-size: cover;
}
.side6 {
transform: translate3d(-85px, 0, -50px) rotate3d(0, 1, 0, 60deg);
background: url(public/images/7.jpg) -650px 0 no-repeat;
background-size: cover;
}
</style>
</head>
<body>
<menu>
<li><input type='text' id='text' /></li>
</menu>
<div class='container'>
<div class='stage'>
<div class='controller'>
<div class='wrap'>
<div class='side side1'></div>
<div class='side side2'></div>
<div class='side side3'></div>
<div class='side side4'></div>
<div class='side side5'></div>
<div class='side side6'></div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function sum() {
var f = 1,
s = 0,
n = 41,
MOD = 1000000,
F = 1,
S = 0;
for(var i = 1; i <= n; i++) {
f = (f * i) % MOD;
s = (s + f) % MOD;
}
// console.log(s % MOD);
console.log(s);
}
sum();
</script>
</body>
</html>