-
Notifications
You must be signed in to change notification settings - Fork 0
/
bonus.html
29 lines (29 loc) · 1 KB
/
bonus.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
<html>
<head>
<script src="https://aframe.io/releases/0.7.0/aframe.min.js"></script>
<script src="client.js"></script>
</head>
<body>
<a-scene>
<a-assets>
<img id="logo" src="https://umbrella.data.naturalint.com/production/sites/uploads/photo/NI_Logo_White.20180206095347.png">
</a-assets>
<a-sky src="#group" radius="10" sky-colors></a-sky>
<a-entity light="color: #AFA; intensity: 1.5" position="0 0 6">
<a-animation attribute="position"
dur="5000"
from="0 0 6"
to="6 0 0"
easying="ease-in-out"
direction="alternating"
repeat="indefinite"></a-animation>
</a-entity>
<a-box width="2.5" height="2.5" depth="2.5" position="-3.5 2 -5" rotation="0 0 45" src="#logo" >
<a-animation attribute="rotation" begin="click" to="0 360 0"></a-animation>
</a-box>
<a-camera position="0 1.8 0">
<a-cursor color="#1783c6"></a-cursor>
</a-camera>
</a-scene>
</body>
</html>