A linear interpolation component for A-Frame.
npm install aframe-lerp-componentel.setAttribute('position', ...) from the current value to the new value in time duration.
el.components.lerp.toPosition(from, to)
from to to in milliseconds (ms) | 100 |
position, rotation | position, rotation, scale |
html
My A-Frame Scene
`
#### npm
Install via npm:
`bash
npm install aframe-lerp-component
`
Then require and use.
`js
require('aframe');
require('aframe-lerp-component');
``