Measured entry

motion-primitives-text-loop

text-effectdark-futuristicmotion on file

A client-side React text rotator that cycles through child nodes with enter and exit animation. It ships as a shadcn registry component, uses Motion for animation, and expects a cn utility backed by clsx and tailwind-merge plus Tailwind utility styles.

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

Verdict

A focused, flexible text rotator that builds and mounts cleanly in both integrated and bare setups. It is a sensible pick when Motion is already present, but excessive for a single decorative phrase and incomplete for teams that require reduced-motion handling out of the box.

Use it if

  • You need a compact rotating phrase inside a heading, hero, or status line.
  • You want configurable timing, transition variants, playback control, or an index-change callback.
  • Your application already uses Motion and can absorb another client-side animated element.

Skip it if

  • You need static copy that remains visible and readable without motion.
  • You cannot justify adding Motion for a small text treatment.
  • You require built-in reduced-motion behavior rather than adding that policy around the component.
  • Your list can be empty at runtime and you do not want to add an input guard.

Install

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

In a non-shadcn project, install Motion, clsx, and tailwind-merge; add or replace the cn helper and its import alias; then provide Tailwind utilities or equivalent CSS for positioning and no-wrap behavior. Keep the file client-rendered.

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.