Wave Transition
NEWA source-aware view transition with a soft rainbow light wave, refracted color, and theme-friendly edge glow.
E
Purchasing EasyUI Sponsor
$49.00FromEveryday ·· 4821
Duration1 month
PlanEasyUI Sponsor
FeeFree
Installation
Add the component directly to your repository using shadcn CLI:
npx shadcn@latest add Surajmaurya1/easyui/wave-transition
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| revealed | boolean | required | Controls which view is shown and the wave direction |
| revealedContent | React.ReactNode | required | The view revealed by the wave |
| children | React.ReactNode | required | The starting view |
| type | "vertical" | "horizontal" | "center" | "vertical" | Wave shape and default origin |
| source | React.RefObject<HTMLElement | null> | undefined | Optional element whose center anchors the wave |
| palette | WavePalette | "colorful" | Colorful, rainbow, ocean, sunset, green, mono, or three custom colors |
| duration | number | 1.1 | Outgoing wave duration in seconds; return is 25% faster |
| overlay | React.ReactNode | undefined | Persistent content layered above both views |
| onFinish | (revealed: boolean) => void | undefined | Called when the wave finishes |