A canvas animation changed setInterval to requestAnimationFrame.