requestAnimationFrame usage