Skip to content

feat(landing): scroll-reveal + hero entrance motion - #585

Merged
lilyshen0722 merged 1 commit into
mainfrom
feat/landing-motion
Jul 3, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
feat/landing-motion

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

The landing-page motion pass from the revised retention plan. CSS-first, no animation library, on-brand calm.

  • Hero entrance: staggered rise on load (pure CSS, 520ms ease-out, runs once, prefers-reduced-motion-gated via media query).
  • Scroll-reveal: an IntersectionObserver reveals 18 [data-reveal] targets as they enter the viewport — section heads as blocks, grids (shots/steps/cards/usecases/tiles/tiers/open-grid) with per-child stagger capped at 5 steps.
  • Progressive-enhancement safety: the hidden pre-reveal state only exists under .v2-landing--motion, which JS adds after confirming IntersectionObserver support AND that the visitor hasn't requested reduced motion. No JS / old browser / reduced-motion → fully visible page, zero hidden content.
  • Spec updated, not bypassed: the design-system README's "no entrance animations" rule was written for app chrome. This PR adds an explicit marketing-surface carve-out with hard limits (opacity + translateY ≤16px, ≤560ms ease-out, once, stagger ≤5, no bounces/springs/parallax) — per the design skill's "if you deviate, amend the spec in the same PR" rule. App chrome stays static.

Browser-verified (MCP Playwright, real Chromium): motion class arms, hero v2-landing-rise animation fires, 0 reveals pre-scroll (hero fills viewport), 18/18 reveal during scroll, no element left at opacity 0 at page bottom.

Frontend suite: 191 green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MnRCAFgjrrGZxo9VRCmCm9

…out)

Adds calm, on-brand motion to /v2/landing per the revised retention plan:

- Hero entrance: pure-CSS staggered rise (520ms ease-out, once),
  gated by prefers-reduced-motion.
- Scroll-reveal: IntersectionObserver adds .is-revealed to 18
  [data-reveal] targets (section heads reveal as blocks; grids
  stagger children ≤5 steps at 80ms).
- Safety model: the hidden pre-reveal state exists only under
  .v2-landing--motion, added by JS after confirming
  IntersectionObserver exists AND the visitor hasn't asked for
  reduced motion — no-JS, old browsers, and reduced-motion get a
  fully visible page. Verified in-browser: all 18 targets reveal on
  scroll, none stay hidden.
- Spec: the design-system README's "no entrance animations" rule was
  written for app chrome; this PR amends it with an explicit
  marketing-surface carve-out (limits: opacity+translateY≤16px,
  ≤560ms ease-out, once, stagger≤5, reduced-motion respected) rather
  than silently deviating. App chrome rule unchanged.

Frontend suite: 191 green.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MnRCAFgjrrGZxo9VRCmCm9
@lilyshen0722
lilyshen0722 merged commit 70bb3ce into main Jul 3, 2026
13 of 14 checks passed
@lilyshen0722
lilyshen0722 deleted the feat/landing-motion branch July 3, 2026 08:08
lilyshen0722 added a commit that referenced this pull request Jul 3, 2026
…nts (#586)

Live verification of #585 on commonly.me caught 4 permanently-hidden
reveal targets (proof-inner, pricing head, CTA title/sub) that the
local stub never reproduced: when /api/stats/public resolves, the
conditionally-rendered stats block shifts <main>'s child list and React
remounts every section after it (index-based reconciliation) — fresh
DOM nodes the already-armed observer never saw, stuck at opacity 0.

The observer effect now depends on `stats` and re-queries un-revealed
[data-reveal] nodes when it lands. Reproduced the live condition
locally (stub returning real stats): 18/18 reveal, 0 hidden.


Claude-Session: https://claude.ai/code/session_01MnRCAFgjrrGZxo9VRCmCm9

Co-authored-by: Claude Fable 5 <[email protected]>
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