-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathautoplay-loop.html
More file actions
41 lines (38 loc) · 1.38 KB
/
autoplay-loop.html
File metadata and controls
41 lines (38 loc) · 1.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Model autoplay test</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<h1>Model: Autoplay and loop test</h1>
<hr />
<p>
If a model contains an animation track, it will be available to play
once the model has loaded. <code>autoplay</code> will trigger the
playback automatically, and <code>loop</code> will loop the content,
irrespective of whether the playback was started via the JavaScript
<code>play()</code> or the attribute.
</p>
<pre>
<model autoplay loop alt="A model of a teapot with a hidden creature">
<source src="./teapot.usdz" type="model/vnd.usdz+zip" />
<source src="./teapot.glb" type="model/gltf-binary" />
</model>
</pre
>
<br />
<model autoplay loop alt="A model of a teapot with a hidden creature">
<source src="./teapot.usdz" type="model/vnd.usdz+zip" />
<source src="./teapot.glb" type="model/gltf-binary" />
<img
src="./teapot-fallback-animated.jpg"
alt="An image of a model of a teapot with a creature inside" />
</model>
</div>
</body>
</html>