Use requestAnimationFrame for better animations.

 - Utilize requestAnimationFrame for autoPlay.
 - Include a fallback for requestAnimationFrame.