Skip to content

fix: show the reading line in production - #34

Merged
benatespina merged 1 commit into
mainfrom
claude/fix-reading-progress
Nov 9, 2026
Merged

benatespina merged 1 commit into
mainfrom
claude/fix-reading-progress

Conversation

@benatespina

Copy link
Copy Markdown
Member

The reading line from #33 works in pnpm dev but stays at zero on bounda.dev.

Why. The production minifier merges animation and animation-timeline: --post from one rule into animation: linear both read --post. animation-timeline is a reset-only longhand of animation, so the shorthand cannot carry it: browsers drop the whole declaration and the animation never runs. Dev serves the CSS unminified, which is why it worked there.

Fix. animation-timeline and animation-range go in their own, more specific rule after the shorthand, which the minifier leaves alone.

Checked on the production build (pnpm build, dist/ served statically): the computed animation-timeline is --post, and the line is at scaleX(0.3) at 30 % of the article and 1 at its end.

The production minifier folded animation-timeline into the animation
shorthand, which cannot carry a timeline, so browsers dropped the whole
declaration and the line stayed at zero. In dev the CSS is not minified,
which is why it worked there. The timeline now lives in its own rule.
@benatespina
benatespina merged commit 943a5b9 into main Nov 9, 2026
3 checks passed
@benatespina
benatespina deleted the claude/fix-reading-progress branch November 9, 2026 19:49
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