
Text Shimmer
A CSS shimmer sweep for headlines, one single element and entirely GPU-friendly.
A text scramble effect that decodes words from random characters on view or hover.
Text Scramble is a React and Tailwind CSS text effect that decodes a headline out of random characters, in Next.js or any React app. It runs on load, in view, or on hover and keyboard focus, and inside a link it answers to the whole link. Use letters, numbers, binary, hex, symbols or your own string, locking in from the start, end, center or at random. Each letter holds its final glyph's width, so the line never shifts. Screen readers get one clean copy; reduced motion skips it. The visible letters are drawn in CSS, so they cannot be selected.
Run the following command
pnpm dlx wensity@latest add text-scramble
npx wensity@latest add text-scramble
yarn dlx wensity@latest add text-scramble
bunx wensity@latest add text-scramble
Import TextScramble from @/components/wensity/text-scramble and render it anywhere in your React or Next.js app. The source lands in your own repo, so every prop, class and animation below is yours to edit.
import { TextScramble } from "@/components/wensity/text-scramble";export default function Example() {return (<TextScrambleas="h1"text="Signal from noise"trigger={["view", "hover"]}characters="alphanumeric"className="text-7xl font-bold tracking-tight"/>);}
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | - | The text to show. Changing it decodes into the new text. |
as | keyof React.JSX.IntrinsicElements | "span" | Tag rendered as the outer element. |
trigger | "mount" | "view" | "hover" | Array | "view" | Decode on load, when scrolled into view, or on hover and keyboard focus. Pass an array to combine. |
characters | "alphanumeric" | "letters" | "uppercase" | "lowercase" | "numbers" | "binary" | "hex" | "symbols" | string | "alphanumeric" | A preset, or any string of your own characters. |
duration | number | 0.9 | Seconds until the last character locks in. |
speed | number | 50 | Milliseconds between random glyph swaps. |
delay | number | 0 | Seconds before the load or in-view run. |
reveal | "start" | "end" | "center" | "random" | "start" | Which characters lock in first. |
matchCase | boolean | true | Random letters follow the case of the letter they replace. |
keep | string | punctuation | Characters that never scramble. Spaces never do. |
once | boolean | true | With the view trigger, decode only the first time. |
scrambleColor | string | text colour | Colour of characters still scrambling. |
scrambleOpacity | number | 0.45 | Opacity of characters still scrambling. |
controlRef | React.Ref<TextScrambleHandle> | - | Handle with play() for replays from your own controls. |
onComplete | () => void | - | Called each time a run finishes. |

A CSS shimmer sweep for headlines, one single element and entirely GPU-friendly.

A 3D character flip on hover, staggered and springy across every single letter.

Blur-morphing headlines that cycle phrases with a gooey, seamless crossfade.

A per-character slide-left cascade with a cleanly staggered entrance timing.
Featured in React text animations.