Skip to content

Video Scrub

Pro

A pinned section where a muted video plays as the page scrolls, forward and back, and holds still when the scroll stops.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 10, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Video Scrub needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
25
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Give the clip and its poster. Put the text over it in the content part.

harbour-show.tsx

VideoScrub

<div>
PropTypeDefaultDescription
containerRefObject<HTMLElement | null>—The scroll box, when the item scrolls inside one and not with the page.
disabledbooleanfalseRests every layer and stops the work.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

VideoScrubVideo

<video>
PropTypeDefaultDescription
srcRequiredstring—The clip. Encode it with a keyframe on every frame (-g 1): see the doc comment.
posterstring—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>
PropTypeDefaultDescription
scrimbooleantrueA 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.
  • Encode the clip with a keyframe on every frame (ffmpeg … -g 1 -movflags +faststart), so each seek is quick.
  • Give VideoScrubVideo a poster: it shows until the clip loads, and when disabled.
  • Put the heading and the call to action in VideoScrubContent: it holds still while the clip plays.
  • In a scroll box, pass the box as container and set its height with --parallax-view.
  • For a sequence of still pictures, use Frame Scrub.
  • For layers that move at their own speed, use Parallax.

The clip is decorative and takes no focus. Give it an aria-label when it says something.

The content holds still on the stage, so a focus that lands in it is always in sight.

Scroll
none · the clip time follows the scroll, one seek at a time, with no easing

Built with

Installs with Video Scrub

Components
Parallax
  1. AddedVideo Scrub, with Parallax.
Open the release