Repository navigation
Homepage: scroll-pinned story chapters driven by curve math - #115
Conversation
…math Replace the hero orbit and the three looping panels with four pinned chapters and a measured-number chapter. Each scene is a pure function of scroll progress: Bézier flights that bank along their tangent, a Catmull-Rom thread drawn by arc length, damped progress, importance-ordered staggers. Search chapter floods the page to paper from the search box. Instrument Serif for chapter headlines only. The live demo search moves below the story. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RuUzfKR31rVxVEVZEEP8Vd
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8ffc4460d1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const fr = EASE_OUT(span(p, 0, 0.16)); | ||
| if (flood.current) flood.current.style.clipPath = `circle(${(fr * R).toFixed(1)}px at ${fc.x.toFixed(0)}px ${fc.y.toFixed(0)}px)`; | ||
| const shown = EASE_OUT(span(p, 0.08, 0.2)); | ||
| if (copy.current) { copy.current.style.opacity = shown.toFixed(3); copy.current.style.transform = `translateY(${((1 - shown) * 16).toFixed(1)}px)`; } |
There was a problem hiding this comment.
Preserve desktop centering when animating the search copy
On desktop, .ch-copy uses top: 50% and translateY(-50%) to center the heading and steps, but this inline transform replaces that centering with a pixel-only translation. Once the entrance finishes, the entire copy block starts halfway down the stage. At common laptop viewport heights, the later steps extend below the stage and are clipped by .ch-stage { overflow: hidden }; scrolling through the pinned chapter never reveals them. Compose the entrance offset with the desktop centering transform while retaining the mobile layout's uncentered positioning.
Useful? React with 👍 / 👎.
The homepage now tells its story in scroll-pinned chapters, the way Wispr Flow does. It replaces the orbit hero and the three looping panels, which sat empty for much of each loop.
What you see
bench-results.ts.After the chapters come the live analyzer, the live demo search (now titled "Try it on a sample memory"), briefs and the workspace.
How the motion works
src/motion/scroll-scene.ts.src/motion/curves.ts, with unit tests):flight: Bézier travel that banks along its tangent;catmullRomPath: a thread that passes through every note;span;EASE_OUTandEASE_IO;rng.aria-hidden; each chapter's copy says the same thing in words. Inactive scroll-spy steps are dimmed with colour rather than opacity, so they keep readable contrast.Checked
motion-curvesunit tests pass locally.docs/design/SYSTEM.md(motion, story order, and how to verify chapters).Generated by Claude Code