UNPKG

dom-to-image

Version:

Generates an image from a DOM node using HTML5 canvas and SVG

11 lines (10 loc) 148 B
#dom-node { width: 50px; height: 50px; overflow: auto; } #scrolled { width: 100px; height: 100px; background-color: blue; }