Skip to content

Text Reveal

Splits a headline into words or characters that slide up from a mask, staggered, when it scrolls into view. The original text stays accessible.

Installation

pnpm dlx shadcn@latest add @portfolio-kit/text-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

Characters

split="char" staggers every letter for short section titles; words still never break mid-word.

Paragraph

Longer copy with a tight stagger and shorter duration, so an intro paragraph ripples in instead of crawling.

API Reference

Used in