-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmodel-1.html
57 lines (53 loc) · 1.25 KB
/
model-1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Example HTMLModelElement</title>
<style>
html,
body {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
place-items: center;
overflow: hidden;
height: 100%;
margin: 0;
padding: 0;
width: 95%;
max-width: 90vw;
max-height: 90vh;
}
model,
picture,
img {
width: 100%;
height: auto;
display: grid;
place-items: center;
max-height: 90vh;
}
img {
object-fit: contain;
}
@media (orientation: landscape) {
body {
grid-template-columns: 1fr 2fr;
}
}
</style>
</head>
<body>
<h1>An example <code>model</code> Element</h1>
<model interactive width="670" height="1191" poster="assets/FlightHelmet.png">
<source src="assets/FlightHelmet.usdz" type="model/vnd.usdz+zip" />
<!--
<source src="assets/FlightHelmet.glb" type="model/gltf-binary" />
<picture>
<img src="assets/FlightHelmet.png" width="670" height="1191" />
</picture>
-->
</model>
</body>
</html>