π¬ Video Frame New
<video> pixels are painted by the GPU compositor and don't serialize into <foreignObject>. The pattern: draw the current frame into a <canvas>, then let SnapDOM capture it like any other node. Press play, then capture any frame. The clip is an MDN CC0 sample served with CORS so the canvas isn't tainted.
π Benchmark: snapDOM vs html2canvas
Each library will capture the same DOM element to canvas 5 times. We'll calculate average speed and show the winner.
snapDOM vs html2canvas snapDOM vs dom-to-image
This is the benchmark test element to be captured by both libraries.
π¦ Basic
Hello SnapDOM!
Transforms & Shadows
Transformed + Shadow
Capture it just with outerTransforms /
outerShadows.
π Fun Transition
πΊπ
I'm dancing and changing color!
Orbit CSS toolkit - Go to repo
π€ Google Fonts
Unique Typography!
Google Fonts with embedFonts: true.
π§± Shadow DOM
π¨ Canvas
π Export Formats
π€ Export as
PNG, JPG & WebP.
β¨ Pseudo Elements
This element has pseudo-elements.
βοΈ Clip-Path Demo
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
π CORS Proxy (useProxy)
Image preview (background)