using requestAnimationFrame to loop. Finally got it to loop with changing speed, like a hesitation drive