Measured entry

ruixen-variable-text

chartunclassifiedmotion on file

A client-side React text treatment that splits a string into animated characters and changes their weight, scale, lift, and opacity according to cursor proximity. It ships as a shadcn registry component, uses Motion for springs and transforms, and relies on a local cn utility plus Tailwind classes.

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

What the harness recorded

BARE BUILD

✗ Build failed in 1m 15s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/ruixen/variable-text.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A focused choice for short, cursor-led display type, with a clean tested render and no provider requirement. It needs a shadcn-style setup as supplied, and teams should add touch and reduced-motion behavior before treating it as a general-purpose text component.

Use it if

  • You want a short headline or display label to react directly to pointer movement.
  • Your interface already uses Motion and a variable font that can show smooth weight changes.
  • The text is decorative enough that disabling selection is acceptable.

Skip it if

  • The copy is long, since every character creates its own animated element and spring.
  • The interaction must work equally well for touch, keyboard, or reduced-motion users without further adaptation.
  • Users need to select and copy the rendered text.
  • You do not want to add Motion for a single decorative effect.

Install

Installation record for ruixen-variable-text
Declared dependenciesmotion, clsx, tailwind-merge
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, install Motion, clsx, and tailwind-merge; add a cn helper or replace that import; configure the at-sign source alias or use a relative path; and provide the referenced Tailwind utilities. Keep it in a client-capable React boundary and use a variable font for the intended weight interpolation.

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 chart pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.