Basic demo
A minimal end-to-end demo with one scene and three steps.
This is the smallest useful Democraft demo: one scene, a goto, an establish, and a caption. It compiles, captures, and renders end-to-end.
The demo file
That is the complete demo. A separate targets.ts or config file is not required. You can extract them later when a larger demo benefits from shared organization.
What this produces
When captured and rendered, this demo yields a roughly 3-second clip:
- Browser navigates to
/. - Camera establishes on the
heroelement (whole viewport). - A caption "Welcome to our product." appears.
- The state holds for 3 seconds.
The hold("3000ms") plus the default frame allocations for goto/establish/caption determine the total duration. At 60fps, this demo is ~180+ frames.
Running it
Or iterate in the Studio:
Next
Add a second scene and a camera focus — see callouts for a richer example.