Measured entry

uilayouts-image-mousetrail-disappear

cursor-effectspatialmotion on file

A client-side React cursor effect that cycles supplied image URLs around the pointer, optionally fading each trail item. It ships as a shadcn registry component with Tailwind utility classes and direct DOM style updates. It declares no extra packages, but imports the usual local cn helper and assumes project styling utilities.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of uilayouts-image-mousetrail-disappear at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of uilayouts-image-mousetrail-disappear at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of uilayouts-image-mousetrail-disappear 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 uilayouts-image-mousetrail-disappear
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 375
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal27.5 KB (92.9 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

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

Verdict

A usable, focused flourish for shadcn-based React pages, with a clean verified build and mount in that environment. It is not a bare drop-in: it needs a shadcn-style setup, plus responsive review and a small source cleanup before production use.

Use it if

  • You want a decorative image trail inside a bounded hero or campaign section.
  • Your React interface already uses Tailwind and a shadcn-style cn utility.
  • You can supply suitable image URLs and keep essential content independent of the effect.

Skip it if

  • Your layout must avoid horizontal overflow on narrow screens without additional responsive work.
  • You need an interaction that remains equally meaningful without pointer or touch movement.
  • Your team requires strict TypeScript checking, polished image semantics, or no debug logging in copied source.
  • You want a dependency-free drop-in for plain CSS or a non-React stack.

Install

Installation record for uilayouts-image-mousetrail-disappear
Declared dependenciesnone declared
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 React project, add a compatible cn class-merging helper at the imported alias, configure that alias, and provide Tailwind with the data-state, transform, transition, sizing, positioning, and easing utilities used by the component. Replace any project-specific easing class or define it locally.

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