Builds scroll-scrubbed film sections, where scrolling plays a pre-rendered camera move, a product turning, a liquid pour or a fly-through one exact frame at a time, from AI-generated or rendered clips. Covers chaining clips into one seamless film with start and end frames, frame sequences versus scrub-ready video, pinned sections with holds for text, phone versions, loading budgets and reduced motion. Use for "scroll-driven animation", "Apple-style scroll video", "fly through the world as you scroll", scroll cinematics, or when a scrubbed video on a page stutters, jumps at a seam or loads too slowly.
Ships in open-3d-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A scroll film pins a canvas while the visitor scrolls through a tall section, and the scroll position picks the frame. The visitor drives the camera, which is why it feels three-dimensional even when every frame was rendered in advance. It is the right tool when the motion is too rich for real-time 3D (generated worlds, liquids, people) and the path is fixed.
| File | What it does |
|---|---|
assets/scroll-film.js | The engine: pinned canvas, progress-to-frame keys with holds, frame sequences or video, smoothing, reduced motion |
scripts/prep.rs frames | Joins clips into one numbered WebP sequence and a manifest |
scripts/prep.rs video | Joins clips into one MP4 encoded for instant seeking |
scripts/prep.rs seams | Scores every join between clips and fails on a visible jump |
Needs ffmpeg and ffprobe, and Rust (cargo). Making the clips is motion-assets; transparent subjects are alpha-cutout; checking the result is site-check and frame-capture.
motion-assets covers model choice, pricing and rate limits).Generate the legs with start and end frames from step 2. Check every join:
cargo run --release --bin prep -- seams legs/01.mp4 legs/02.mp4 legs/03.mp4
Under 4 is invisible; over 10 is a jump. Fix a bad seam by regenerating that leg anchored on the exact last frame of the previous one (extract it with ffmpeg rather than reusing the still: models shift colour and framing slightly).
Choose frames or video.
| Frame sequence (default) | Scrub video | |
|---|---|---|
| Accuracy | Exact frame for every scroll position | Seeks land a little late, worst on Safari and low-end phones |
| Size | 20 to 60 kB a frame at 1280 to 1600 px | About a third of that |
| Good for | Up to roughly 300 frames | Long films where size matters more than precision |
cargo run --release --bin prep -- frames legs/*.mp4 site/film/lg --width 1600 --fps 24
cargo run --release --bin prep -- frames legs/*.mp4 site/film/sm --width 900 --fps 24 --quality 72
cargo run --release --bin prep -- video legs/*.mp4 site/film.mp4 --width 1920 --gop 4
frames drops each later leg's first frame, which duplicates the previous leg's last. video uses a 4-frame GOP and no B-frames: a normal export with a 250-frame GOP makes every seek decode hundreds of frames, and scrubbing stutters.
Mark up the section. Height sets how much scrolling the film takes. Roughly one viewport of scroll per second of film feels deliberate; less feels rushed.
<section id="film" style="height: 600vh">
<div class="pin" style="position: sticky; top: 0; height: 100vh">
<canvas style="width: 100%; height: 100%; display: block"></canvas>
<div class="captions">...</div>
</div>
</section>
Wire the engine.
import { ScrollFilm } from "./scroll-film.js";
const small = matchMedia("(max-width: 760px)").matches;
const film = new ScrollFilm({
section: document.querySelector("#film"),
canvas: document.querySelector("#film canvas"),
frames: { count: 247, src: (i) => `film/${small ? "sm" : "lg"}/${String(i).padStart(3, "0")}.webp` },
keys: [[0, 0], [0.18, 60], [0.3, 60], [0.62, 160], [0.72, 160], [1, 246]],
onUpdate: ({ progress }) => captions(progress),
onReady: () => document.body.classList.add("film-ready"),
});
keys are [progress, frame] pairs. Two keys with the same frame make a hold: the film waits at a beat while its caption scrolls in and out. Put a hold at every beat that carries words. Without holds, text slides over a moving picture and nobody reads it.
smooth (default 0.18) eases the film toward the scroll position, frame-rate independently, so mouse-wheel steps become motion instead of jumps. If the page already smooths scrolling (Lenis), set smooth: 1.
Captions and layers read progress in onUpdate. Fade a caption in over a short range at the start of its hold and out at the end; keep it off the busiest part of the frame, with a soft scrim behind if needed.
A 16:9 film centre-cropped to a portrait phone usually loses the subject. Check the crop on every beat. If it fails, generate portrait (9:16) legs from portrait keyframes and ship them as a separate set, switched by a media query, and say up front that this doubles the video budget. A centre crop is acceptable only when every beat keeps its subject in the middle third.
Phones also get the small frame set and should stay under about 8 MB for the whole film.
<img> (or as the canvas background) so the first paint is the film, not a blank box.python3 -m http.server does not, and videos it serves cannot seek; locally, use the frame-capture skill's serve binary.With prefers-reduced-motion: reduce, the engine steps between the key frames (reducedMotion: "steps", the default) instead of playing, so every beat still shows its picture. "still" shows only the last key frame.
frame-capture skill: cargo run --release --bin record -- URL check.mp4 --fps 8 --seconds 20 --scroll "0:0 18:100%".What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/open-3d-skills:scroll-filmfrom open-3d-skills
npx claudepluginhub bhubbard/open-3d-skills --plugin open-3d-skills8 skills in this plugin
/alpha-cutoutTurns an AI-generated (or filmed) clip of a character or product into a transparent, web-ready animation by shooting it on a flat chroma plate and keying it with per-frame plate measurement and edge unmixing. Delivers stacked-alpha MP4 that plays with transparency in every browser including Safari, VP9 alpha WebM, or keyed WebP frame sequences for scroll scrubbing. Use when an animated subject has to sit over page content, between layers of type, or over a 3D scene, when someone asks for "transparent video", "video with alpha", "remove the background from this clip", or when a generated video has a background that should not be there./cursor-rigMakes a painted or illustrated character turn its head to follow the visitor's cursor, looking like one continuous painting that moves, without a 3D model or face tracking. Generates head-pose keyframes with an image-editing model and head-turn clips with an image-to-video model, then builds a pose grid on one fixed body (selected by measured head position, aligned, masked, with optical-flow in-betweens) and plays it with a spring-driven canvas player that also blinks. Use when someone wants a hero character, mascot or portrait whose eyes or face follow the mouse, a "look at the cursor" effect, or an illustration that reacts to the visitor./exploded-viewBuilds interactive 3D explainers of how a machine or product works, in three.js, with a staged exploded view driven by a slider or scroll, x-ray shells, a section cut through the casing, labels pinned to parts with leader lines that never cover the model, and hover or click to pick parts. Works on code-built models and loaded GLB files. Use for "show how it works", teardown or cutaway pages, product anatomy, engine, motor, gearbox, camera, phone or vehicle internals, technical education pages, or turning a 2D cutaway drawing into an interactive 3D one./frame-captureRecords any web page (three.js, WebGL, canvas, GSAP, CSS animation, scroll-driven video) to a perfectly smooth 60 fps MP4 by running the page on a virtual clock, one exact frame at a time, and puts two recordings against each other as a labelled stacked or side-by-side comparison. Use when someone wants a video of a site, a demo clip for X or YouTube, a scroll-through, a showcase reel of a 3D scene, or a "model A vs model B" comparison video. Also use when a screen recording of an animated page stutters or drops frames./motion-assetsPlans and generates the images and video clips an animated website needs with AI image and video models, without wasting money. Covers proposing the concept and asset list with exact prompts and costs before spending, keeping one style across every asset, start and end frames for clips that chain or loop, choosing a model by what it can do, calibrating cost, staying under rate limits, recovering failed jobs, fixing loops and outpaints, and logging every prompt so the project can be rebuilt. Use whenever a site needs generated heroes, characters, product shots, textures, background loops or camera-move clips, or when someone says "use Higgsfield", "use Runway", "use Kling", "use Veo", "generate the assets" or "animate this image"./site-checkVerifies a 3D or animated web page in real headless browsers before anyone else sees it. Shoots every view, light state and scroll position at desktop, tablet and phone widths in Chromium and WebKit (Safari), measures frame time, draw calls and triangles, catches page errors, failed requests, blank WebGL canvases, horizontal overflow and reduced-motion behaviour, and builds one contact sheet. Use after building or changing any three.js, WebGL, canvas, scroll-driven or animated page, before publishing or recording it, or when someone asks "does it work", "check it on mobile", "why is it slow" or "test it in Safari".