Installnpx shadcn@latest add https://motion-lexicon.pages.dev/r/primitive-scroll-reveal.json
- Purpose
- Signal a new reading section on first viewport entry while preserving scroll continuity.
- Trigger
- Trigger from an IntersectionObserver threshold, showing initially visible content immediately.
- Interruptibility
- Complete the current reveal during fast scrolling to avoid animation queues.
- Reduced motion
- Show content immediately on viewport entry or keep one very brief fade.
scroll-revealScroll revealViewport entry triggers a one-time opacity or position transition for newly visible content.