created a requestAnimationFrame timer.