Skip to content

Frame Scrub

Pro

A pinned section where a sequence of pictures plays frame by frame as the page scrolls, forward and back.

  • 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

Frame 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
37
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 frames in order. Put the text over them in the content part.

coast-film.tsx

FrameScrub

<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.

FrameScrubCanvas

<div>
PropTypeDefaultDescription
framesRequiredreadonly string[]—The frame files in order, the first frame at the start of the pin.
altRequiredstring—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.
posterstring—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>
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.
  • Give FrameScrubCanvas the frame files in order and an alt that says what the film shows.
  • Put the heading and the call to action in FrameScrubContent: it holds still while the frames play.
  • Make the root taller with className (h-[400svh]) for a slower film.
  • In a scroll box, pass the box as container and set its height with --parallax-view.
  • For a real video clip with smooth motion, use Video Scrub.
  • For one picture that moves a little slower than the page, use Parallax Image.

The still picture under the canvas keeps the alt text; the canvas is hidden from screen readers.

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

Scroll
none · the frame follows the scroll in the same frame, with no easing
Canvas in
fade · 150ms, the canvas fades in over the still picture after its first frame

Built with

Installs with Frame Scrub

Components
Image,Parallax
  1. AddedFrame Scrub, with Image, Parallax.
Open the release