Give the frames in order. Put the text over them in the content part.
coast-film.tsx
FrameScrub
<div>FrameScrubCanvas
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| frames | readonly string[] | — | The frame files in order, the first frame at the start of the pin. |
| alt | string | — | Say what the sequence shows: the text of the still picture under the canvas. |
| fit | "contain""cover" | "cover" | cover (default) crops the frames to fill the stage; contain shows each frame whole. |
| poster | string | — | The still picture before the canvas draws, and the fallback. Default: the first frame. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
FrameScrubContent
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| scrim | boolean | true | A dark fade from the bottom under the text, so it reads on any frame. Default true. Without it, give the text its own backdrop. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
Built with
Installs with Frame Scrub











