Single animationFrame loop handler thing.