Skip to content

fix: keep experience timeline working after CSS minification - #5

Merged
t3ned merged 1 commit into
mainfrom
fix/experience-timeline-minify
Nov 12, 2026
Merged

t3ned merged 1 commit into
mainfrom
fix/experience-timeline-minify

Conversation

@t3ned

@t3ned t3ned commented Nov 12, 2026

Copy link
Copy Markdown
Owner

What changed

The experience timeline doesn't animate on the live site. The production CSS minifier folds animation-timeline into the animation shorthand when both are in the same rule (animation: linear both rail-fill --seg). Browsers treat animation-timeline as reset-only in the shorthand, so they drop the whole declaration. The dev server doesn't minify, which is why it worked locally.

animation-timeline now sits in its own rule, with a comment explaining why, so the minifier can't merge it.

Testing

  • bun run build: the minified CSS now keeps animation-timeline:--seg and animation-timeline:view() as separate declarations.
  • Playwright against astro preview (the production build) with a role scrolled to the middle of the screen: the rail segments are filled and the dots are lit, and each element has a running animation.
  • The same check on the live https://gmiles.dev shows 0 animations: the bug this fixes.
  • Lint and format check pass.

@t3ned t3ned self-assigned this Nov 12, 2026
@t3ned
t3ned merged commit 845daf3 into main Nov 12, 2026
2 checks passed
@t3ned
t3ned deleted the fix/experience-timeline-minify branch November 12, 2026 20:07
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