forked from sparkbox/logo-experiments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebvr.html
75 lines (69 loc) · 1.71 KB
/
webvr.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>WebVR Logo</title>
<link rel="stylesheet" href="all.css">
<style>
#world {
position: absolute;
width:100%;
height: 100%;
overflow: hidden;
background: -webkit-linear-gradient(#2a3340, #172533);
background: -o-linear-gradient(#2a3340, #172533);
background: linear-gradient(#2a3340, #172533);
}
</style>
<script src="https://aframe.io/releases/0.2.0/aframe.min.js"></script>
</head>
<body>
<a-scene>
<!-- A camera -->
<a-camera id="camera" position="0 0 20"></a-camera>
<!-- 1st -->
<a-box
width="8"
depth="8"
height="3"
position="0 -8.5 0"
color="brown">
</a-box>
<!-- 2nd -->
<a-box
width="8"
depth="8"
height="2"
position="-8 -9 0"
color="brown">
</a-box>
<!-- 3rd -->
<a-box
width="8"
depth="8"
height="1"
position="8 -9.5 0"
color="brown">
</a-box>
<!-- floor -->
<a-box width="100" depth="100" height="2" color="#404040" position="0 -11 0"></a-box>
<!-- our logo -->
<a-assets>
<a-asset-item id="sparkbox" src="webgl/3d-logo.dae"></a-asset-item>
</a-assets>
<a-entity collada-model="#sparkbox">
<a-animation
attribute="rotation"
from="70 2 0"
to="70 360 0"
easing="linear"
dur="6500"
repeat="indefinite"
fill="forwards"
direction="normal">
</a-animation>
</a-entity>
<a-sky color="#4d2149"></a-sky>
</a-scene>
</body>
</html>