SnapDOMGitHub8K

SnapDOM vs html2canvas

Capture the same element to canvas five times with each library and compare the average time in this browser.

SnapDOM vs html2canvas SnapDOM vs dom-to-image

This is the benchmark test element to be captured by both libraries.
SnapDOM
Waiting to start...
html2canvas
Waiting to start...

Basic capture

Hello SnapDOM!

Transforms & shadows

Transformed + Shadow

Capture it just with outerTransforms / outerShadows.

Animated transition

🕺💃

I'm dancing and changing color!

Orbit CSS toolkit - Go to repo

ORBIT

HTML export Plugin

The html-export plugin returns a self-contained HTML snapshot with styles, fonts and images inlined. The preview opens that document in a sandboxed <iframe>.

Provisioning manifest

A surface with varied controls and a pseudo-element dot.

SHF · 2.4 GHz

GIF recording Plugin

The gif-export plugin records the live element frame by frame and returns an animated GIF. Recording starts when you call toGif().

00

Video recording Plugin

The video-export plugin records the live element using MediaRecorder. The browser selects a supported MP4 or WebM format; check Blob.type for the result.

00

Video frame Core

Capture the current frame of a <video> along with its surrounding interface. Press play, then capture a frame. This demo uses a CORS-enabled sample video.

Web fonts

Unique Typography!

Web fonts with embedFonts: true.

Shadow DOM

Canvas

Export formats

Export as
PNG, JPG & WebP.

Pseudo-elements

This element has pseudo-elements.

Clip-path

This shape uses clip-path

Mix blend mode

CSS background-blend-mode: multiply. A gradient image (sky + grass) blended with a blue overlay. SnapDOM captures the final rendered result.

Gradient × blue overlay = tinted result

Iframe (same-origin)

Inputs & textarea

Masking effects

CSS radial mask
PNG circle mask
SVG mask
Linear gradient mask

CORS proxy (useProxy)

Image preview (background)
CORS proxy by Corsfix

Full-page capture

Ecosystem

Tools built on SnapDOM

SnapEye gives coding agents visual evidence. SnapSurf navigates and verifies web pages. SnapDIFF runs visual regression tests against saved baselines.

Compare the tools and see how they work together →