Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 753 Bytes

README.md

File metadata and controls

38 lines (33 loc) · 753 Bytes

Guys...
guys
Guys.
Guys listen.
I have the best ide
guys listen
I have the best idea ever
guys
I'll put HTML
guys
HTML
I'll put HTML
guys listen here
I'll put HTML... into a GIF.

####Seriously guys, use like this:

Include:

<script src="http://eirikb.github.io/html2gif/dist/html2gif.min.js"></script>

Code:

var html2Gif = new Html2Gif(<element>);
html2Gif.oncomplete = function(dataUri) {};
html2Gif.start(<delay>, <times to run>);

Start/stop can be done manually by omitting delay and times to run, then calling snap and finally end:

var html2Gif = new Html2Gif(<element>);
html2Gif.oncomplete = function(dataUri) {};
html2Gif.start();
html2Gif.snap();
html2Gif.end();