Content-Length: 29936 | pFad | https://html2canvas.hertzen.com/

html2canvas - Screenshots with JavaScript
html2canvas

html2canvas

Screenshots with JavaScript

HTML

<div id="capture" style="padding: 10px; background: #f5da55">
    <h4 style="color: #000; ">Hello world!</h4>
</div>

JavaScript

html2canvas(document.querySelector("#capture")).then(canvas => {
    document.body.appendChild(canvas)
});
Install NPM
npm install --save html2canvas
Install Yarn
yarn add html2canvas
45kb gzipped
Try html2canvas

Try out html2canvas

Test out html2canvas by rendering the viewport from the current page.

Capture








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://html2canvas.hertzen.com/

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy