Use requestAnimationFrame