Skip to content

🎥 Make videos programmatically with React

Update html-in-canvas-guide.mdx

JonnyBurger4d5c36f2014a
diff --git a/packages/docs/docs/html-in-canvas-guide.mdx b/packages/docs/docs/html-in-canvas-guide.mdx
index 037a4a219f..4ccca3094d 100644
--- a/packages/docs/docs/html-in-canvas-guide.mdx
+++ b/packages/docs/docs/html-in-canvas-guide.mdx
@@ -5,19 +5,19 @@ title: HTML-in-canvas
crumb: 'Designing visuals'
---
+# HTML-in-canvas<AvailableFrom v="4.0.455" />
+
<video
src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/html-in-canvas-banner.mp4"
autoPlay
loop
muted
playsInline
- style={{width: '100%', borderRadius: 'var(--ifm-global-radius)', marginBottom: 'var(--ifm-leading)'}}
+ style={{width: '100%', borderRadius: 'var(--ifm-global-radius)', marginBottom: 0, aspectRation: '3/1'}}
/>
<SuggestedPrompts prompts={['use remotion html-in-canvas best practices. create a sample composition and apply a glitch effect to it!', 'use remotion html-in-canvas best practices. make a new composition and implement a subtle CRT convex shape shader on top of a HTML element. content: terminal and remotion themed. the command and output of "npx create-video@latest --yes --blank my-video" should be animated. then "claude" should be invoked and the prompt "Add a CRT effect using HTML-in-canvas " should be shown']} />
-# HTML-in-canvas<AvailableFrom v="4.0.455" />
-
Regular video editors are canvas-based which allows for complex effects and compositing that is not possible with plain CSS.
[HTML-in-canvas](https://github.com/WICG/html-in-canvas) is an experimental browser API currently only available in Chrome Canary behind a flag, which allows you to draw a live DOM node into a `<canvas>` and post-process it with the Canvas 2D API, WebGL or WebGPU.