Text Shimmer Sweep
A slanted band of light glides across dimmed text, rests, then sweeps again; colours follow the theme.
textshimmershinesweeploop
Installation
Run the shadcn CLI in a project with Tailwind CSS. The component lands in components/pixelpapa/text-shimmer-sweep.tsx.
$pnpm dlx shadcn@latest add "https://pixelpapa.com/r/text-shimmer-sweep.json"Manual install+
1. Install the dependencies.
$pnpm add lucide-react2. Copy the code from the Code tab above into your project. It imports the cn helper from @/lib/utils, which every shadcn project already has.
Build it with AI
Prefer to let an agent do the wiring? Copy this prompt, describe where the component should go, and paste.
AI prompt
Paste into Claude, Cursor, v0 or Lovable
Add the "Text Shimmer Sweep" component from PixelPapa UI to this project. What it is: A slanted band of light glides across dimmed text, rests, then sweeps again; colours follow the theme. Category: Text Effects. Depends on: lucide-react. 1. Install it with the shadcn CLI: npx shadcn@latest add "https://pixelpapa.com/r/text-shimmer-sweep.json" (If the CLI is unavailable, fetch that URL, write files[0].content to components/pixelpapa/text-shimmer-sweep.tsx and install the listed dependencies.) 2. Import it from "@/components/pixelpapa/text-shimmer-sweep" and place it where I describe below. 3. Keep its animation timings and accessibility attributes. Replace the demo copy and data with content that fits my product, and use my existing theme tokens (bg-background, text-foreground, bg-primary, border-border) rather than hard-coded colours. Where to use it: <describe the page and position here>
More text effects
- Blur Reveal TextWords rise out of a blur one after another when the text scrolls into view.
- Text Circular RotatingText set on a circle that spins continuously and eases down to a crawl on hover, with a slot in the middle for an icon or button.
- Text Counting NumberA spring-driven count-up with locale formatting, prefix, suffix and decimals; writes straight to the DOM so it never re-renders.
- Text Glitch SliceThe word is cut into horizontal strips that jolt sideways in short bursts, with two colour ghosts splitting off underneath.
- Text Gradient FlowA seamless multi-stop gradient that travels through the letters on a loop, with an optional blurred glow of the same gradient behind.
- Text Highlight MarkerHand-drawn marker strokes (highlight, underline or circle) draw themselves behind words when they scroll into view.