Two 8-second clips, a courtyard duel under ginkgo leaves and a ronin in a flower field, are cut into nine shots and exported as 384 frames. The page draws them on a canvas as you scroll, so the film plays forwards and backwards with your hand. The title is split by the same slit that opens the film, each caption brings its own kanji, and the HUD keeps real timecode and the camera name.
Nothing to attach. The prompt loads all 384 frames straight from thinkingods.com, so paste it, save what your AI gives back as
index.html and open it in Chrome. See the live build ↗ first.The prompt
Paste this into Claude (or any AI that writes code), save the file it gives you as index.html and open it. Nothing to install, no server.
Build a single self-contained index.html: a scroll-driven film edit called ZANSHIN, two samurai duels cut into one 16-second sequence. All CSS and JS inline, no framework, no build step. A full-screen pinned stage scrubs 384 film frames on a canvas as you scroll. A thin glowing blade slit opens the film at the start and closes it at the end, nine captions in Japanese and English slide in from alternating sides, and a film HUD counts timecode. FILES (hosted, nothing to attach) - 384 frames: https://thinkingods.com/demos/zanshin/frames/f000.webp … f383.webp (3-digit, zero-padded). 2.33:1, 24 fps. - Cam A is a ginkgo courtyard (yellow leaves, stone lanterns). Cam B is a violet flower field. STACK - Vanilla HTML/CSS/JS. Lenis 1.1.13 from https://cdn.jsdelivr.net/npm/[email protected]/dist/lenis.min.js for smooth scroll (lerp .075, wheelMultiplier .85, smoothWheel true, syncTouch false); without it, use native scroll. - Google Fonts: Shippori Mincho (500, 800) for display, Zen Kaku Gothic New (400, 500) for body, IBM Plex Mono (400, 500) for HUD and labels, Yuji Boku for the brush kanji (load it with &text= limited to the kanji used, display=block). TOKENS (oklch) --ink oklch(.15 .014 265) page and loader · --paper oklch(.95 .012 85) text · --mist oklch(.78 .014 85) muted · --rule paper at 22% · --ginkgo oklch(.83 .14 86), its glow at 55% · --wisteria oklch(.76 .12 305) · --ease cubic-bezier(.22,1,.36,1) · side gutters max(16px, 5vw, safe-area inset). DATA (verbatim) - Hero: title ZANSHIN; kicker "Two duels, cut into one breath."; vertical kanji 残心; meta "16 s · 384 frames" / "2.33 : 1 · 24 fps"; cue "Scroll to draw". - HUD: top-left 残心 + "Zanshin"; top-right "2.33:1 · 24 fps · 4K source"; bottom-left timecode 00:00:SS:FF + "FR 001 / 384"; bottom-right a dot + "Cam A · Courtyard" or "Cam B · Flower field". - Nine chapters [first frame, end frame, camera, side, kanji, title, gloss, line]: 01 [0,36,A,left] 抜刀 Battō, "the draw": Steel slides out of the scabbard. The courtyard goes still. 02 [36,66,B,right] 突撃 Totsugeki, "the charge": Across the flower field, the ronin closes the distance. 03 [66,132,A,left] 火花 Hibana, "sparks": The blades meet, and the sparks hang in the air for a frame. 04 [132,167,B,right] 対峙 Taiji, "the face-off": Two swordsmen, one breath apart. 05 [167,212,A,left] 見切り Mikiri, "reading the cut": Judge the distance to the inch. Move only as far as the blade allows. 06 [212,238,A,left] 踏み込み Fumikomi, "the stamping step": The front foot hits the wet stone, and the strike rides in behind it. 07 [238,292,B,right] 落花 Rakka, "falling petals": A low cut through the flowers. A petal drifts past the brim of his hat. 08 [292,340,A,left] 一閃 Issen, "a single flash": One stroke, and the exchange is over. 09 [340,384,B,right] 残心 Zanshin, "the mind that remains": The fight ends. The guard stays up. - Shot label on each caption: "Shot 0N / 09 · Cam A · Courtyard" (or Cam B · Flower field), the "Shot 0N" part bold in the accent. - Outro: brush kanji 終, "Zanshin" (mono, letter-spacing .5em, ginkgo), "An edit by Thinking Gods · @thinkingods", a pill button "Back to the draw ↑". - Loader: brush 刀, a "000 / 100" counter and a 1px progress bar. LAYOUT - One track 1250vh tall; inside it a sticky full-screen stage (100svh, overflow hidden). - Film layer: the canvas fills the stage, cover-fit (on portrait screens fit to at least 58% of the height), DPR capped at 2. Clip it with clip-path: inset(var(--inset) 0 var(--inset) 0). Over it: two corner scrims (bottom-left for left captions, top-right for right captions, shown only while that side's caption is on), a top/bottom and edge vignette, and an animated film-grain layer (a 160px random-noise canvas as background, opacity .13, mix-blend overlay, stepped 1s jitter). - Blade edges: two 1px lines at the slit's top and bottom, gradient transparent → ginkgo → paper → ginkgo → transparent with a ginkgo glow; they fade as the slit opens. - Hero: ZANSHIN in Shippori Mincho 800, clamp(50px, 14.5vw, 250px), letter-spacing .05em, centred and drawn twice: the top half (paper) clipped above 56% of its height, the bottom half (mist) clipped below, pushed apart by half the slit's height so the title looks cut by the blade. Kicker top-left at 17vh, vertical 残心 top-right in ginkgo, meta bottom-right, cue bottom-left with a 56px line a ginkgo bar sweeps through. - Captions: left ones at bottom 13vh, right ones at top 15vh mirrored (row-reverse, right-aligned). Each is the vertical brush kanji (clamp(46px, 10vh, 118px), ginkgo on the left, wisteria on the right) beside: shot label, a 220px accent rule, title in Shippori 800 clamp(38px, 6.2vw, 104px) split into letters, the gloss in the accent, and the line (max 34ch). - A 36vh progress rail at the right edge with one tick per chapter (ginkgo for A, wisteria for B); the current tick grows 2.6×. SCROLL MAP (p = 0–1 over the track) - p 0–.07 hero: frames 0 → 3. p .07–.925: nine equal slices, slice i scrubs its chapter's frames linearly (the first starts at frame 3). Last frame from .925. - Slit band height: from a minimum max(14px, 2.6% of height) at p .004 to full screen at p .07 (smoothstep, then cubic ease-in-out); from p .94 to .99 it closes back to 2px. inset = (height − band) / 2. - Hero opacity fades out as the slit opens; outro fades in over p .955–.995 and becomes clickable past 60%. - A caption is on while its slice is between 5% and 90% done. - Timecode = frame / 24 as seconds and frame % 24, camera from the chapter. MOTION - Caption enter: the kanji wipes down with clip-path (1.1s, ease), letters rise from 108% with a 32ms stagger after 140ms, the rule scales in from its side, shot label, gloss and line slide in from their side (36px) and fade, at .05s, .35s, .45s. The whole caption fades in from blur(8px). Exit: fade and blur out in .45s, then reset everything instantly. - The kanji drifts against scroll speed: translate by velocity × −0.7px (velocity smoothed, clamped ±60). - Frames: load all 384 as <img> in a coarse-to-fine order (every 32nd, then 16th, 8th, 4th, 2nd, 1st) with 8 in flight; count progress in the loader and hide it when done (or after 25s). Keep a sliding window of decoded ImageBitmaps around the current frame (16 ahead / 6 behind, 10 / 4 on phones, at most 4 decoding), drop the rest, and draw the nearest decoded frame while the exact one decodes. Lenis stays stopped until the loader finishes. - One requestAnimationFrame loop: Lenis raf, read scroll, update CSS variables, captions, HUD, then draw only when the frame changes. - Replay button scrolls back to the top over 3.2s (ease-out cubic). RESPONSIVE - Under 720px: hide the rail, the top-right HUD, the hero meta and the frame count; move the hero kanji to bottom 24vh at 44px; captions span the gutters (left ones at bottom 12vh, right ones at top 12vh), kanji 52px, line 15px. ACCESSIBILITY - The canvas is role="img" with a description; the h1 has aria-label "Zanshin"; split letters and kanji are aria-hidden; the loader is role="status". prefers-reduced-motion: no Lenis, no grain or cue animation, captions switch instantly. DONE WHEN - The page loads with ZANSHIN cut in two around a glowing slit, the slit opens into the courtyard as you scroll, nine captions trade sides as the film cuts between the courtyard and the flower field, the timecode and camera label follow the frames, and the slit closes on 終 — forwards and backwards with the scroll.
Make it yours
| Swap | How |
|---|---|
| Your own footage | Export any cut as numbered WebP frames (f000.webp, f001.webp …) at 24 fps, then change the frame count and the chapter frame ranges in DATA. |
| Your own chapters | Keep one row per cut: first frame, end frame, camera, side, kanji, title, gloss and line. The scroll map divides the track by however many chapters you list. |
| Your own pacing | The track height (1250vh) sets how long the film takes to scroll. The slit timings (p .07 and .94) set how long the title holds and how fast the ending closes. |

