diff --git a/docs/concepts/compositions.mdx b/docs/concepts/compositions.mdx new file mode 100644 index 000000000..5b1ce3def --- /dev/null +++ b/docs/concepts/compositions.mdx @@ -0,0 +1,107 @@ +--- +title: Compositions +description: "The fundamental building block of a Hyperframes video." +--- + +A composition is an HTML document that defines a video timeline. Every clip — video, image, audio — must live inside a composition. + +## Structure + +Every composition needs a root element with `data-composition-id`: + +```html +
+ +
+``` + +The `index.html` file is the top-level composition. It can contain nested compositions within it. Any composition can be imported into another — there is no special "root" type. + +## Clip Types + +A clip is any discrete block on the timeline, represented as an HTML element with data attributes: + +- `