score:1

Accepted answer

Try to change this logic:

 window.setTimeout(function () {
                page.render(output);
                phantom.exit();
            }, 200);

To this:

 window.setTimeout(function () {
                page.render(output);
                phantom.exit();
            }, 5000);

It is possible that 5000 milliseconds it is to much, but it is for testing. It is better to know when animation is finished than capture screenshot.


Related Query

More Query from same tag