-
Notifications
You must be signed in to change notification settings - Fork 2
/
contoh.html
31 lines (31 loc) · 1.12 KB
/
contoh.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Loading Model</title>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/[email protected]/dist/aframe-extras.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-event-set-component.min.js"></script>
</head>
<body>
<a-scene>
<a-camera>
<a-entity
cursor="fuse:true;fuseTimeout:1500"
position=" 0 0 -2"
material="color:#222222;"
geometry="primitive:ring;radius-inner:0.05;radius-outer:0.1 "
animation__satu="property:scale;to: 1 1 1; startEvents:mouseleave; "
animation__dua="property:scale; to :0.5 0.5 0.5; startEvents:fusing;"
>
</a-entity>
</a-camera>
<a-box
color="#aa0000"
position="0 1.5 -3"
animation__satu = "property:material.color; to : #aaaa00; startEvents:click;"
></a-box>
</a-scene>
</body>
</html>