Adventureland Registry

Text Shimmer

An animated text component that sweeps a highlight across its content using a GSAP-driven shimmer effect.

TextShimmer wraps a string in a configurable shimmer sweep animation. It uses GSAP to drive the gradient across the text on repeat, making it well-suited for loading states, hero subtitles, or decorative callouts.

Installation

npx shadcn@latest add @adv/text-shimmer

Usage

import { TextShimmer } from '@/components/TextShimmer';

<TextShimmer>Loading…</TextShimmer>

Example

Loading your experience…

Props

PropTypeDefaultDescription
childrenstringThe text content to animate. Required.
asElementType"p"The HTML element or component to render as.
classNamestringAdditional CSS classes.
durationnumber2Duration (in seconds) of one full shimmer pass.
spreadnumber2Per-character multiplier for the shimmer gradient width (px).

On this page