Like setTimeout() but with requestAnimationFrame()