Measured entry

motion-primitives-text-roll

text-effect3dmotion on file

TextRoll is a client-side React and TypeScript text effect distributed as a shadcn registry component. It renders each character as paired layers for a staggered flip, depends on Motion, and uses Tailwind utilities for perspective, positioning, and screen-reader copy.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of motion-primitives-text-roll at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of motion-primitives-text-roll at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of motion-primitives-text-roll 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-roll
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal58.2 KB (123.6 KB build, 65.4 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten from the component source API

Verdict

A focused, configurable text flourish that built and mounted cleanly in both registry and bare setups. Use it sparingly for short copy; the Motion cost and missing reduced-motion behavior make it a poor default for routine body text.

Use it if

  • You need a short headline, label, or call to action to animate once on mount.
  • Your design benefits from per-character timing and configurable enter and exit transforms.
  • Your React stack already uses Motion and Tailwind-style utility classes.

Skip it if

  • You need automatic reduced-motion handling; the component does not implement a preference fallback.
  • Your content must include nested markup or rich text, since children must be a plain string.
  • You want a lightweight text treatment without adding Motion to the client bundle.

Install

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

Install Motion, copy the client component into your React project, and provide Tailwind support for its utility classes. Without Tailwind, recreate the relative and absolute positioning, perspective, backface visibility, transform origins, inline layout, invisible sizing copy, and screen-reader-only text in CSS.

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.