Give the clip and its poster. Put the text over it in the content part.
harbour-show.tsx
VideoScrub
<div>VideoScrubVideo
<video>| Prop | Type | Default | Description |
|---|---|---|---|
| src | string | — | The clip. Encode it with a keyframe on every frame (-g 1): see the doc comment. |
| poster | string | — | The still picture before the clip loads, and the look when disabled. |
| fit | "contain""cover" | "cover" | cover (default) crops the clip to fill the stage; contain shows the whole frame. |
| ...props | <video> attributes | — | Every other attribute goes to the <video>, with a ref. |
VideoScrubContent
<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 Video Scrub
- Components
- Parallax











