Skip to content

feat: add startSide to ScrollTimeline - #9

Merged
parammehta merged 1 commit into
mainfrom
feat/scroll-timeline-start-side
Aug 26, 2026
Merged

parammehta merged 1 commit into
mainfrom
feat/scroll-timeline-start-side

Conversation

@parammehta

Copy link
Copy Markdown
Owner

Cards alternate above and below the axis so each gets its own half of it — that's what lets them be tall relative to the viewport. The alternation is purely index % 2; it means nothing about the items.

But when the items carry an order a reader will project onto the vertical axis — seniority, rank, size — the parity decides which of an adjacent pair sits on top, and a lower-ranked item landing above a higher-ranked one reads as a hierarchy that isn't there.

Came up on the portfolio's work timeline: a Senior role landed above the Staff role directly next to it, at the same company. Nothing was wrong with the layout, but it read wrong.

<ScrollTimeline startSide="below" … />

Defaults to "above", so existing callers are unchanged. One test covering the flipped run, plus a StartBelow story.

Full suite: 181 passing across 25 files. Lint, typecheck, stylelint and build all clean.

🤖 Generated with Claude Code

Cards alternate above and below the axis so each gets its own half of it, which
is what lets them be tall relative to the viewport. That alternation is a layout
device and means nothing by itself — but when the items carry an order a reader
will project onto the vertical axis, it decides which of an adjacent pair sits
on top, and a lower-ranked item landing above a higher-ranked one reads as a
hierarchy that isn't there.

startSide flips which side the run begins on. Defaults to 'above', so existing
callers are unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@parammehta
parammehta merged commit 069a4b4 into main Aug 26, 2026
4 checks passed
@parammehta
parammehta deleted the feat/scroll-timeline-start-side branch August 26, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant