Skip to content
caliper ui docs
DemoGet Pro

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.

Free
A harbour at dawn with moored boats

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.md

The index of every part is at /llms.txt.

More in Media