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.



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.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | flagged at 375 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 27.5 KB (92.9 KB build, 65.4 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written 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
| Declared dependencies | none declared |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no 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.
Author repository
github.com/ui-layouts/uilayoutsAlternatives
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.
- tripled-liquid-cursor-shadcnuiliquid-glass
- Renders
- YES
- A11y
- 0
- Gzip
- 21.1KB
- Bare
- pass
- Prov
- NO
- kibo-cursorminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 29.9KB
- Bare
- pass
- Prov
- NO
- tripled-spotlight-section-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 61.8KB
- Bare
- pass
- Prov
- NO
- tripled-native-typewriterminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 69.9KB
- Bare
- pass
- Prov
- NO
- tripled-native-typewriter-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 69.9KB
- Bare
- pass
- Prov
- NO
- tripled-native-magneticminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 70.5KB
- Bare
- pass
- Prov
- NO