-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththreedom3.html
44 lines (44 loc) · 1.12 KB
/
threedom3.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="threedom.css">
<style media="screen">
body {
margin: 0;
}
#space {
height: 50vh;
background: linear-gradient(transparent, #3b3b3b);
perspective-origin: 150% -50%;
overflow: visible;
perspective: 2422px;
}
#cube {
top: calc(50% - calc(var(--height) / 2));
top: 225px;
transform: rotateY(65deg);
--width:30vh;
--height:30vh;
--depth:30vh;
}
#cube > * {
background: url(https://images.unsplash.com/photo-1588801092859-418d909759ad?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60);
background-size: cover;
}
</style>
</head>
<body>
<div id="space" class="three-d reflective space">
<div id="cube" class="three-d shaded seated object">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</body>
</html>