Skip to content

Reveal

Fades, lifts and un-blurs elements as they scroll into view, one by one or staggered across a group. Respects reduced motion.

Installation

pnpm dlx shadcn@latest add @portfolio-kit/reveal
First time? Add the @portfolio-kit registry to components.json
components.json
{
  "registries": {
    "@portfolio-kit": "https://www.parthjadhav.com/products/portfolio-kit/r/{name}.json"
  }
}

Usage

Examples

Staggered group

RevealGroup reveals its direct children one after another without adding wrappers, so it drops straight into a grid.

Directions

Alternate from="left" and from="right" down a process list; repeat replays each step whenever it re-enters the view. Scroll the preview.

API Reference

Used in