Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Shimmer Text

Pro

A highlight that sweeps across muted text. Ideal for loading and AI status lines.

Installation

pnpm dlx shadcn@latest add @viewport/shimmer-text

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
durationnumber

Seconds for one sweep.

2.4

Accessibility

  • Pure CSS, no JavaScript.
  • Falls back to static muted text under reduced motion.
  • Text stays selectable and readable by screen readers.