forked from akbartus/AFrame-Runtime-GLTF-Animations
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
26 lines (25 loc) · 1.13 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
<html>
<head>
<title>A-Frame 3D Model Animations in the Runtime</title>
<script src='https://aframe.io/releases/1.3.0/aframe.min.js'></script>
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/[email protected]/dist/aframe-extras.min.js"></script></head>
<link rel="stylesheet" href="css/style.css">
<body>
<!-- Animation Controls -->
<div id="animationControls">
<button class="buttonC" onclick="idle()">Idle</button>
<button class="buttonC" onclick="look()">Look</button>
<button class="buttonC" onclick="sad()">Sad</button>
<button class="buttonC" onclick="pushUpAndJump()">Push Up with Jump</button>
<button class="buttonC" onclick="twist()">Twist</button>
<button class="buttonC" onclick="kick()">Kick</button>
</div>
<!-- A-Frame Scene -->
<a-scene>
<a-entity id="model" animation-mixer position="0 0 -3"></a-entity>
<a-plane position='0 0 -4' rotation='-90 0 0' width='4' height='4' color='#7BC8A4'></a-plane>
<a-sky color='#ECECEC'></a-sky>
</a-scene>
<script src="js/main.js"></script>
</body>
</html>