A function to bounce between two extents over a duration.
npm install --save whydoidoit-bounce
import bounce from 'whydoidoit-bounce'
...
//Bounce position between 0 and 10 at the current "time" with a duration of 4 seconds
let currentValue = bounce(0, 10, time, 4);
Uses ES6/Babel/PlayCanvas template.