Measured entry

motion-primitives-text-scramble

text-effectdark-futuristicmotion on file

A client-side React text effect that replaces unrevealed characters on a timer, then resolves them to the supplied string. It ships as a shadcn registry TypeScript component, imports motion/react, and relies on React state and effects. It accepts a custom element, character set, timing controls, a trigger, and a completion callback.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of motion-primitives-text-scramble at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of motion-primitives-text-scramble at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of motion-primitives-text-scramble at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for motion-primitives-text-scramble
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal58.3 KB (123.7 KB build, 65.4 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten from the component source API

Verdict

A compact, configurable scramble effect that builds and mounts cleanly without framework scaffolding. It is a good fit for occasional decorative reveals, but teams should add reduced-motion handling and avoid treating it as a general solution for text that changes after mount.

Use it if

  • You need a short decoding or terminal-style reveal for a heading, status, or one-line label.
  • Your React interface already uses Motion or can justify adding it for this and other animation work.
  • You want to restart the effect from application state and run logic when the reveal completes.

Skip it if

  • The text changes frequently while the trigger remains active, because child updates do not restart or synchronize the displayed value.
  • You need built-in reduced-motion behavior rather than adding that preference handling around the component.
  • You want a dependency-free text effect or cannot justify Motion for a small decorative interaction.
  • The changing text sits in a live or frequently announced region where rapid character updates could distract assistive technology users.

Install

Installation record for motion-primitives-text-scramble
Declared dependenciesmotion
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno provider required in the harness

In a non-shadcn React project, install Motion, copy the component into your source tree, and keep it behind a client boundary where the framework requires one. No provider, theme variables, or registry helper utilities are required. Add your own reduced-motion policy and styling through the rendered element or class name.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Alternatives

Other published entries for the text-effect pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.