Measured entry

motion-primitives-text-shimmer

text-effectgradient-glowmotion on file

A client-side React text component that loops a moving gradient through a plain string and can render as a chosen element. It ships as a shadcn registry file and depends on Motion, Tailwind utility processing, and a cn helper backed by clsx and tailwind-merge.

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

Verdict

A solid, narrowly scoped shimmer that builds and mounts cleanly without a provider. Use it where repeated motion communicates active work; for decorative copy, its Motion cost and lack of a built-in reduced-motion path make a CSS alternative easier to justify.

Use it if

  • You want a restrained loading or status label that remains readable as ordinary text.
  • Your React app already uses Tailwind and can absorb Motion for animated UI.
  • You need the shimmer to render as a heading, paragraph, or another semantic element.

Skip it if

  • The label needs nested markup, icons, or independently styled words because children must be a plain string.
  • You need reduced-motion behavior built into the component.
  • Adding Motion is too much runtime weight for a decorative text treatment.
  • Your styling pipeline does not support Tailwind arbitrary properties and dark variants.

Install

Installation record for motion-primitives-text-shimmer
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 a cn class-merging helper, configure the import alias or replace it with a relative path, and ensure Tailwind processes arbitrary properties and dark variants. Keep the client-component directive in frameworks that distinguish server and client modules.

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.