forked from illinoistechesi/davyjoneslocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lerp.html
19 lines (19 loc) · 803 Bytes
/
lerp.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<html>
<head>
<title>A-Frame Linear Interpolation Component - Basic</title>
<meta name="description" content="Basic example for Linear Interpolation component."></meta>
<!-- A Frame import -->
<script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script>
<!-- A Frame Lerp Component -->
<script src="https://unpkg.com/aframe-lerp-component/dist/aframe-lerp-component.min.js"></script>
</head>
<body>
<a-scene>
<a-assets></a-assets>
<a-box id="default" position="-3.2 3 -4" color="black"></a-box>
<a-box id="lerp" lerp="duration:200" position="-3.2 1 -4" color="black"></a-box>
<a-light type="point" intensity="5" position="0 2 0" color="white"></a-light>
</a-scene>
<script src="./example.js"></script>
</body>
</html>