-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmodel-3.html
50 lines (46 loc) · 1.02 KB
/
model-3.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
<!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" src="assets/FlightHelmet.usdz" poster="assets/FlightHelmet.png">
</model>
</body>
</html>