-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathanimation.html
30 lines (24 loc) · 965 Bytes
/
animation.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
<!doctype HTML>
<html>
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
<script src="js/aframe.min.js"></script>
<script src="js/aframe-ar.js"></script>
<body style="margin: 0px; overflow: hidden;">
<a-scene embedded vr-mode-ui="enabled: false;" arjs="debugUIEnabled: false;">
<a-assets>
<img id="earth-sphere" src="images/earth-sphere.jpg" />
</a-assets>
<!--
for more info, see: https://aframe.io/docs/1.0.0/components/animation.html
for more examples: https://stemkoski.github.io/A-Frame-Examples/animation.html
-->
<a-marker type="pattern" url="data/kanji.patt">
<a-sphere position="0 0.5 0"
material="src: #earth-sphere; transparent: true; opacity: 0.95;"
animation__rotate = "property: rotation; dur: 8000; easing: linear; dir: normal; from:0 0 0; to: 0 360 0; loop: true;">
</a-sphere>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</body>
</html>