Skip to content
SprecherEast
Issue 584

enhancement: Subtle motion that helps reading: progress line, current section, gentle card entrance

Back to our plan
Open
enhancementfrontendstylinguxpriority: medium

Problem

In plain words: the owner wants the site to feel neat and alive, with subtle animation that makes it easier to use. Motion helps only when it shows where you are or what changed. A lot of animation slows the page, and some readers find it uncomfortable.

Summary of the owner's direction (2026-11-02, Claude conversation, text): think unconventionally and make things look really neat and innovative. Add subtle animation, but keep it very intuitive and encouraging for people to return to the site. What matters most is less complication and getting straight to making things look good.

Today (checked):

  • Rules. docs/guidelines/ui-ux-design.md ("Animation and Transitions") allows hover transitions up to 300ms and subtle transforms, uses motion-safe:, and says page transitions aren't needed.
  • Reduced motion. globals.css turns off lifts and long transitions for reduced motion.
  • Targets. LCP < 2.5s and CLS < 0.1.

Pushback, in the owner's interest:

  • What makes the pages feel neat is mostly the structure: #571 to #574 put the title, the sections and the text on the first screen.
  • Motion should add only small cues on top of that. No JavaScript animation library, page transitions, parallax, auto-playing carousels or scroll-jacking.
  • Nothing animates on the first screen: fading in the main image or title would delay LCP.

Proposed fix

Four small things, all CSS:

  1. Reading progress. A 2–3px line under the sticky site header on posts and events.
    • It uses a CSS scroll-driven animation (animation-timeline: scroll()) on transform: scaleX only.
    • It sits inside @supports and motion-safe. Browsers without support show no line.
    • Browser support wasn't checked in this session: check caniuse at build time.
  2. Current section. #574 already highlights it. Add a 150ms colour and indicator transition (motion-safe:transition-colors).
  3. Cards. Below the first screen, card grids rise 8px and fade in over 200ms as they scroll into view.
    • This uses animation-timeline: view() inside @supports and motion-safe.
    • Without support, cards are simply visible: they never start hidden.
  4. Hover and focus. Apply the existing card-lift rule and focus-ring transition consistently.

Native first, one line per step:

  1. Native: CSS scroll-driven animations and Tailwind v4 motion-safe:. I didn't check whether Tailwind has scroll-timeline utilities, so use plain CSS in globals.css or an @utility if it doesn't.
  2. Official plugins: none.
  3. Open source: Motion (Framer Motion) isn't needed, since CSS covers all four.
  4. Our code: a few CSS rules, plus the guideline section updated quoting the owner (a policy change, called out in the PR).

Acceptance criteria

  • Not done: With reduced motion on, none of the four animates.
  • Not done: Durations are 300ms or less. Only transform and opacity animate, and nothing on the first screen animates.
  • Not done: Before and after numbers on the home page, /posts and the I-94 post at 430 and 1280 are in the PR: LCP < 2.5s and CLS < 0.1, with no regression above 100ms.
  • Not done: Six widths (320, 430, 768, 1024, 1280, 1920), light and dark. Focus rings stay visible.
  • Not done: In a browser without scroll-driven animations (Firefox), nothing is hidden or broken.

Area

frontend, styling, ux

Priority

medium


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab