Reveal

Animates children into view when they enter the viewport using IntersectionObserver. Wrap multiple Reveal components in RevealProvider to share a single observer for performance.

core/reveal

Installation

1 · Add registry to components.json

2 · Install component

Examples

Default

Cards fade and slide up when entering the viewport.

API Reference

PropTypeDescription
asChild
booleanMerges animation props onto a single child element instead of wrapping it.
threshold
numberIntersectionObserver threshold before triggering.
rootMargin
stringIntersectionObserver rootMargin.
style
CSSPropertiesPassed through — use for transitionDelay to stagger multiple reveals.