Reveal
Uncovers an image or a section as it scrolls into view, or when told to: a wipe from any edge, an iris from the middle, or blinds that open in stripes. Every effect cuts the content itself, and the content settles from a touch larger behind the edge.

When to use
- Photography and case studies on marketing pages, where each picture should arrive.
- A reveal you replay from a button, such as a before and after.
When not to use
- Product UI and anything people need at once.
- Content above the fold; it is left alone on purpose.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/reveal
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. No account needed. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
Reveal
6 props
Also accepts the native props of its root element and a ref.
PropTypeDefaultDescription
effect"wipe" | "iris" | "blinds""wipe"A wipe from one edge, an iris from the middle, or blinds that open in stripes.
from"left" | "right" | "top" | "bottom""bottom"The edge a wipe starts from. Blinds open across it: left or right gives upright stripes, top or bottom lying ones.
slatsnumber8Stripes for the blinds, 2 to 16.
revealedboolean—Controlled state. Leave unset to uncover the content once it scrolls into view.
repeatbooleanfalseCovers it again when it scrolls out of view, so the reveal plays each time.
delaynumber0Extra wait before it plays, in ms, for staggering neighbours.
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It is built on native elements, so roles and focus come from the browser.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/reveal.mdThe index of every part is at /llms.txt.
More in Media
Pixel revealSwaps 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.Reveal lensTwo layers in one frame and a round lens that shows the second through the first. The lens trails the pointer on a spring, opens wider while pressed and closes when the pointer leaves.StaggerChildren of a group arrive one after another on mount or when scrolled into view, so a new list reads in order.