Use requestAnimationFrame in 2 last examples