Skip to content

Embed HTML content on the canvas

Embedding HTML bridges design tools and the web platform—see Lesson 29 — Embedding HTML content. Mind stacking contexts, focus rings, and accessibility when mixing DOM with canvas layers.

Throttle reflows when animating transforms.

Interactive demo

We add it to a special shape type that renders the HTML content directly. Try copying and pasting some code from a VSCode file.

Released under the MIT License.