Skip to content

fix(site): hydrate FeaturesSection on idle so scroll entrance animation runs - #259

Merged
aka-cronos merged 1 commit into
mainfrom
fix/site-features-scroll-animation
Nov 22, 2026
Merged

aka-cronos merged 1 commit into
mainfrom
fix/site-features-scroll-animation

Conversation

@aka-cronos

@aka-cronos aka-cronos commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

After switching FeaturesSection to default visible = true for SSR/no-JS visibility in #258, client:visible prevented the island from hydrating until the section had already entered the viewport, so its IntersectionObserver never armed the scroll entrance animation.

Switching FeaturesSection to client:idle hydrates it in the background before the user scrolls down, keeping SSR and no-JS fully visible while restoring the scroll-triggered drop and slide-in animations.

Summary

  • site/src/pages/index.astro: change <FeaturesSection client:visible /> to <FeaturesSection client:idle /> with an inline comment explaining the SSR + IntersectionObserver interaction.

Evidence

  • Build & typecheck on be14321: pnpm --dir site build (astro check + astro build) passed with 0 errors, 0 warnings, 0 hints across 18 files.

Merge danger

Two-way door. Single-line hydration directive change on one island in site/src/pages/index.astro; zero layout or SSR output change.

Decisions

  • Chose client:idle over client:visible={{ rootMargin }} so fast scrolling cannot outrun hydration before the observer arms, without blocking hero LCP.

Not in this change

  • No changes to FeaturesSection.tsx animation timings or SSR defaults.

Agents

Role Model Effort Tool Thread
Implementer Gemini 4 Neon medium Antigravity in T3 Code ef6354ba-fb29-427b-9803-e3d20472e556

Note

Low Risk
Single Astro island hydration directive on the marketing homepage; no logic, layout, or SSR markup changes.

Overview
Fixes FeaturesSection scroll entrance animations that stopped firing after SSR visibility was improved in a prior change.

On index.astro, the island hydration directive moves from client:visible to client:idle (with a short inline comment). client:visible only hydrated once the section was already in view, so its IntersectionObserver never had time to arm before scroll. client:idle hydrates in the background after load, preserving full SSR/no-JS visibility without racing the user’s scroll to the features block.

Reviewed by Cursor Bugbot for commit be14321. Bugbot is set up for automated code reviews on this repo. Configure here.

@aka-cronos
aka-cronos merged commit 77313c8 into main Nov 22, 2026
4 checks passed
@aka-cronos
aka-cronos deleted the fix/site-features-scroll-animation branch November 22, 2026 22: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