Skip to content

Write HTML. Render video. Built for agents.

docs: an Inspector map that matches the Inspector, and an example that can run

ukimsanov9a659053db3a
diff --git a/docs/concepts/compositions.mdx b/docs/concepts/compositions.mdx
index 9fa943d52d..5edf19dd05 100644
--- a/docs/concepts/compositions.mdx
+++ b/docs/concepts/compositions.mdx
@@ -189,6 +189,7 @@ your DOM or CSS for you — you do it in three steps:
data-composition-id="card-pro"
data-composition-src="compositions/card.html"
data-start="0"
+ data-duration="3"
data-track-index="1"
data-variable-values='{"title":"Pro","color":"#ff4d4f"}'
></div>
@@ -196,6 +197,7 @@ your DOM or CSS for you — you do it in three steps:
data-composition-id="card-enterprise"
data-composition-src="compositions/card.html"
data-start="card-pro"
+ data-duration="3"
data-track-index="1"
data-variable-values='{"title":"Enterprise","color":"#22c55e"}'
></div>
diff --git a/docs/concepts/variables.mdx b/docs/concepts/variables.mdx
index 3446143867..72f5fa8b98 100644
--- a/docs/concepts/variables.mdx
+++ b/docs/concepts/variables.mdx
@@ -113,14 +113,18 @@ A parent can reuse the same composition several times:
data-composition-id="card-pro"
data-composition-src="compositions/card.html"
data-start="0"
- data-variable-values='{"title":"Pro","accent":"#ff4d4f"}'
+ data-duration="3"
+ data-track-index="1"
+data-variable-values='{"title":"Pro","accent":"#ff4d4f"}'
></div>
<div
data-composition-id="card-enterprise"
data-composition-src="compositions/card.html"
data-start="card-pro"
- data-variable-values='{"title":"Enterprise","accent":"#22c55e"}'
+ data-duration="3"
+ data-track-index="1"
+data-variable-values='{"title":"Enterprise","accent":"#22c55e"}'
></div>
```
diff --git a/docs/studio/canvas.mdx b/docs/studio/canvas.mdx
index e71609b5df..054ac057a5 100644
--- a/docs/studio/canvas.mdx
+++ b/docs/studio/canvas.mdx
@@ -45,8 +45,10 @@ element.
| Set position, size, spacing, or alignment | Layout |
| Change fill, border, radius, shadow, opacity, or effects | Style |
| Replace or fit an image, video, or audio source | Media |
-| Adjust supported perspective or transforms | 3D |
+| Adjust perspective or 3D transforms | Layout (3D Transform) |
| Correct an image or video's appearance | Grade |
+| Change timing or animation | Motion |
+| Apply a look or media effect | Effects |
Do not change content, layout, style, timing, and motion at once. Make one kind
of edit, play it, then decide whether another edit is still needed.