Heroes built with this technique, scrubbing back to back. Real recordings, not highlight
edits: every one is driven at the same constant 400 px/second, roughly the pace of an
unhurried browsing scroll, so the clip lengths differ because the heroes do.
This plays by itself, and GitHub puts a pause button on it. Open the
full-quality MP4 to scrub it frame by frame.
Measurements and case studies in examples/.
[!NOTE]
You'll need a kie.ai account — that's
where the models run, and you pay them directly. A typical hero is about $2.55. That link is
a Black Line Ops affiliate link: sign up through it and we earn a referral credit at no extra
cost to you. It changes nothing about what a run costs, and the rates quoted in
references/kie-api.md cite kie.ai's own pages with
plain, unreferred links so you can check every number.
🎬 What it actually does
You give it a photograph and a sentence — or, if the thing does not exist yet, just the
sentence. It:
- Draws the opening frame, when there is no photo. The idea becomes a photographic
description, the description is rendered, and the storyboard is then written against that
frame. One image, about $0.05. Skip this step and everything below is identical.
- Writes a storyboard — a multimodal model looks at your photo and plans the steps.
- Renders keyframe stills — image-to-image from your photo, so the real building, fence
and skyline stay recognisable instead of drifting into generic AI scenery.
- Stops and shows you a contact sheet. Nothing expensive happens until you approve.
- Tweens between approved stills with Kling's first/last-frame video model.
- Cuts the videos into numbered WebP frames plus a small
config.js, and can wire the
canvas scrub engine into your page.
The finished hero is just images a canvas paints. No video element, no runtime AI, no streaming
— which is why it scrubs smoothly, works offline once deployed, and doesn't stall on iOS.
Which of the two skills do I want?
Ask whether the camera moves.