-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcube.html
More file actions
109 lines (105 loc) · 2.99 KB
/
cube.html
File metadata and controls
109 lines (105 loc) · 2.99 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>3D video cube</title>
</head>
<body>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background: #000;
}
/* scroll bar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #18191d;
}
::-webkit-scrollbar-thumb {
background: #3b4146;
}
::-webkit-scrollbar-thumb:hover {
background: #474e54;
}
section{
position: relative;
width: 100%;
height: 100vh;
}
section .box{
position: absolute;
top: calc(30%);
left: calc(50%);
width: 400px;
height: 400px;
transform-style: preserve-3d;
}
section .box div{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transform-style: preserve-3d;
transform: rotateX(-20deg) rotateY(25deg) translate3d(-75px,-50px,-150px);
}
section .box div span{
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
border: 1px solid rgba(0,0,0,.1);
background: #ccc;
}
section video{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
section .box div span img{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
section .box div span:nth-child(1){
transform: rotateX(0deg) translate3d(0,0,200px)
}
section .box div span:nth-child(2){
transform: rotateY(90deg) translate3d(0,0,-200px)
}
section .box div span:nth-child(2)img{
transform: rotateY(180deg)
}
section .box div span:nth-child(3){
transform: rotateX(90deg) translate3d(0,0,200px)
}
</style>
<section>
<div class="box">
<div>
<!--<span><img src='gif/CTM.gif'></span>
<span><img src='gif/CTM.gif'></span>
<span><img src='gif/CTM.gif'></span>
-->
<span><video src='video/COUB/Cat.mp4' autoplay='' muted='' loop=''></video></span>
<span><video src='video/COUB/Cat.mp4' autoplay='' muted='' loop=''></video></span>
<span><video src='video/COUB/Cat.mp4' autoplay='' muted='' loop=''></video></span>
</div>
</div>
</section>
</body>
</html>