html2screen export html animation to video file.
npm install
node export.js http://tobiasahlin.com/spinkit/ spinner.webm 1280x720 10s
- html2screen require npm modules listed in package.json
- Exported videos are stored in Downloads folder
- Specify bitrate to control quality of the exported video by adjusting
videoBitsPerSecond
property inbackground.js
It's mean to use HTML+CSS+JS as motion designer tools.
It's inspired by html2print philosophy.
It's based on https://github.com/GoogleChrome/puppeteer and https://github.com/muralikg/puppetcam.
- Change Puppeteer version to 1.7
- Add size and length parameter
- Fix size parameter (setViewport, deviceScaleFactor)