-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
96 lines (92 loc) · 3.74 KB
/
index.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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>360 Video</title>
<meta name="description" content="360 Video — A-Frame">
<script src="js/aframe.min.js"></script>
<script src="https://npmcdn.com/[email protected]"></script>
<script src="https://npmcdn.com/[email protected]"></script>
<script src="js/cursor.js"></script>
<script src="js/main.js"></script>
<!-- <link rel="stylesheet" type="text/css" href="css/main.css"> -->
</head>
<body>
<a-scene data-scene>
<a-assets>
<a-asset-item id="poke" src="models/model.dae"></a-asset-item>
<img id="wood" src="images/textures/wood.jpg">
<video id="space" src="videos/space.mp4" muted autoplay loop crossorigin></video>
<video id="skate" src="videos/skate.mp4" muted loop crossorigin></video>
<video id="dive" src="videos/dive.mp4" muted loop crossorigin></video>
<video id="code" src="videos/code.mp4" muted loop crossorigin></video>
<script id="select-box" type="text/html">
<a-entity class="link"
geometry="primitive: box; height: 2; width: 5; depth: 1"
material="src: #wood"
change-video="on: click; src: ${src}; target: #video-sphere; id: ${id}"
position="${x} -4 -10"
event-set__1="_event: mouseenter; scale: 1.2 1.2 1"
event-set__2="_event: mouseleave; scale: 1 1 1"></a-entity>
</script>
<a-mixin id="select-box__text" color="yellow" align="center" font="mozillavr" scale="1.5 1.5 0"></a-mixin>
</a-assets>
<a-entity template="src: #select-box" data-x="-6" data-id="#skate" data-src="videos/skate.mp4" text="value: He hoi; transparant: false; width: 4;">
<a-animation attribute="position"
begin="explode"
dur="700"
fill="forwards"
to="0 0 -9000"
repeat="0"></a-animation>
</a-entity>
<a-entity template="src: #select-box" data-x="0" data-id="#dive" data-src="videos/dive.mp4">
<a-animation attribute="position"
begin="explode"
dur="700"
fill="forwards"
to="0 0 -9000"
repeat="0"></a-animation>
<a-text mixin="select-box__text" value="Of liever duiken?!" position="3.2 0.5 1"></a-text>
</a-entity>
<a-entity template="src: #select-box" data-x="6" data-id="#code" data-src="videos/code.mp4">
<a-animation attribute="position"
begin="explode"
dur="700"
fill="forwards"
to="0 0 -9000"
repeat="0"></a-animation>
<a-text mixin="select-box__text" value="Nee gewoon coden!" position="-0.2 0.5 1"></a-text>
</a-entity>
<a-text value="He Jasper waar heb jij zin in?" position="0 4 -5" color="#EDDD3E" align="center" font="mozillavr" opacity="0">
<a-animation attribute="opacity"
dur="1000"
delay="1000"
fill="forwards"
easing="ease-in"
to="1"
repeat="0"></a-animation>
</a-text>
<a-entity collada-model="#poke" position="2.5 1.5 -4">
<a-animation attribute="rotation"
dur="1000"
delay="1000"
fill="forwards"
to="20 -60 0"
repeat="0"></a-animation>
</a-entity>
<a-videosphere id="video-sphere" src='#space' autoplay></a-videosphere>
<a-entity vive-controls="hand: left" vive-cursor trigger-click></a-entity>
<a-entity vive-controls="hand: right" vive-cursor trigger-click></a-entity>
<a-camera position="0 0 200">
<a-animation attribute="position"
dur="700"
delay="300"
fill="forwards"
to="0 1.6 0"
repeat="0"></a-animation>
<a-cursor material="color: #EDDD3E"></a-cursor>
</a-camera>
</a-scene>
</body>
</script>
</html>