'Is it possible to create a video from a Javascript animation?

I have a web app that plays an animation using javascript, html, css. Is there a way that I can record that to a video file so that a user can download and view the animation without going to the site?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source