Components · Motion
Reveal
BetaAdded v3.1.0
Fades its content up as it scrolls into view, in marketing mode. CSS scroll-driven where supported, an IntersectionObserver elsewhere; content on screen at load, and every visitor without JS or with reduced motion, just sees it.
import { Reveal } from '@nexub/react';Examples
Default
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | false | Merge onto the child element instead of a div. |
| childrenrequired | React.ReactNode | — | Content to reveal. |
On iOS & Android
Web only
Reveal has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.