Worked on requestAnimationFrame