Skip to content

fix: make landing scroll-reveals trigger earlier and finish faster#173

Merged
durga710 merged 1 commit into
mainfrom
fix/landing-reveal-timing
Jul 22, 2026
Merged

fix: make landing scroll-reveals trigger earlier and finish faster#173
durga710 merged 1 commit into
mainfrom
fix/landing-reveal-timing

Conversation

@durga710

Copy link
Copy Markdown
Owner

Summary

The homepage's scroll-reveal animations triggered too late and ran too slow, so whole sections sat blank while scrolling — worst in the dark RayVerify band, where pipeline stages required 60% viewport visibility plus ~1.7s of staggered animation and read as an empty box. Pricing's third card, role cards, and the trust grid had the same lag in milder form.

Changes

  • LandingPage.tsx (.rh-rv reveals): IntersectionObserver now fires at 6% visibility with no negative rootMargin (was 15% + -8%); transition shortened to 0.45s / 12px rise (was 0.6s / 16px); role/pricing stagger delays tightened to 0.05s steps (was 0.07s).
  • RayVerifySection.tsx (framer-motion): viewport amount lowered to 0.2–0.3 (was 0.4–0.6); durations 0.4–0.5s (was 0.5–0.7s); per-stage stagger 0.07s (was 0.12s); smaller entry offsets.

Animation-timing only — no copy, layout, or design-system changes. prefers-reduced-motion paths untouched.

Test plan

  • tsc --noEmit clean
  • vite build green
  • Local vite preview walkthrough: all three pricing tiers, trust grid, timeline, ROI, and RayVerify pipeline now reveal promptly at normal scroll speed
  • Verify Vercel preview deploy renders the same

Sections sat invisible while scrolling because reveals waited for deep
viewport intersection and ran long animations:

- LandingPage .rh-rv: observe at 6% visibility (was 15% + -8% rootMargin),
  transition 0.45s/12px (was 0.6s/16px), stagger delays tightened
- RayVerifySection: framer-motion viewport amounts 0.2-0.3 (was 0.4-0.6),
  durations 0.4-0.5s (was 0.5-0.7s), per-stage stagger 0.07s (was 0.12s)

Worst case was the dark RayVerify band: pipeline stages needed 60%
visibility plus ~1.7s of staggered animation, reading as an empty box.
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
rayhealth-evv-platform-app Ready Ready Preview, Comment Jul 22, 2026 8:08pm

const io = new IntersectionObserver(
(entries) => entries.forEach((e) => { if (e.isIntersecting) { e.target.classList.add('in'); io.unobserve(e.target); } }),
{ threshold: 0.15, rootMargin: '0px 0px -8% 0px' },
{ threshold: 0.06, rootMargin: '0px 0px 0px 0px' },
@durga710
durga710 merged commit e75469a into main Jul 22, 2026
13 checks passed
@durga710
durga710 deleted the fix/landing-reveal-timing branch July 22, 2026 20:27
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.

2 participants