--- title: "Slit Scan Reveal" description: "The frame's rows sample an authored subject at offset times: a canvas painter draws row slices of one pure position function evaluated at t minus offset(row), smearing arrival through time until the offsets collapse to zero and the mark holds coherent." --- import { InstallCommand } from "/snippets/install-command.jsx"; import { VariablesExplorer } from "/snippets/variables-explorer.jsx"; ```html slit-scan-reveal.html Slit Scan Reveal ``` ## Install That writes one file: `compositions/components/slit-scan-reveal.html`. ## Paste it into your composition Open `compositions/components/slit-scan-reveal.html` and copy what is inside into your own composition. A component has no size or duration of its own. It takes both from the composition you paste it into. ## Variables Every one of these has a default, so the piece works untouched. Set the ones you want to change on the element: | Variable | Default | Accepts | What it does | | --- | --- | --- | --- | | `axis` | `rows` | `rows`, `cols` | rows smears arrival across horizontal slices; cols across vertical slices. | | `spread` | `0.45` | number | Maximum sampling offset in seconds across the frame; larger smears further through time. | | `resolve_at` | `2.2` | number | Seconds from mount start when the offsets start collapsing to zero. Clamped so the collapse and any exit stay inside the clip. | | `accent` | `green` | `green`, `blue`, `violet` | Subject ring and orbit color: green rides --brand, blue rides --accent, violet rides --accent-2. | | `exit` | `none` | `none`, `fade`, `up` | Optional departure. Default none: the resolved mark holds until the frame cuts. | Set them with `data-variable-values` on the element that mounts it. These are the defaults, so this behaves exactly like the preview above until you change one: ```html wrap
``` ## Source ```html Slit Scan Reveal ``` {/* hf:generated-footer */} Tagged `motion-primitive` `time` `slit-scan` `canvas` `deterministic` `experiment`. ## Related topics - [Browse the complete Catalog](/catalog) - [Add assets and Catalog items in Studio](/studio/assets-and-blocks) - [Build a richer composition](/go-further)