Pixel reveal
Swaps content behind a wave of square tiles: they cover the old view corner to corner, the content changes while hidden, and the tiles clear the same way. Change the key to run it; the whole wave is about half a second.

Harbour · 1 of 4
When to use
- Switching between whole views of one area: a chart's period, a gallery item, a before and after.
- A moment of change you want noticed.
When not to use
- Frequent updates such as live data; use a quiet fade.
- Text people are reading; the wave interrupts it.
Installation
pnpm dlx shadcn@latest add @caliper/pixel-reveal
Adds its 4 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
PixelReveal
4 props
waveDelays
0 props
No props of its own; it accepts the native props of its root element.
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It is built on native elements and keeps aria-hidden in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/pixel-reveal.mdThe index of every part is at /llms.txt.