Measured entry
uilayouts-image-mousetrail-small
cursor-effectspatialmotion on file
A client-side React cursor effect that cycles image elements into a trail as the pointer or touch position moves across a section. It ships as a shadcn registry component and relies on React, Tailwind utility and data-state classes, an aliased cn helper, and consumer-supplied image URLs.



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.4 KB (92.8 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 32.02s 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, compact visual flourish for controlled hero sections, with clean verified mounting inside its expected environment. It needs a shadcn-style setup and still deserves cleanup for narrow layouts, motion preferences, generic alt text, and activation logging before production use.
Use it if
- You want a decorative image trail for a desktop-led portfolio, campaign hero, or editorial landing section.
- Your app already uses the shadcn project conventions, Tailwind utilities, and the aliased cn helper.
- You can supply and optimize the image set and test the interaction against your actual page layout.
Skip it if
- Your experience is mobile-first, since the verified narrow viewport overflows and the effect is primarily pointer-led.
- You need reduced-motion handling, keyboard interaction, or meaningful image descriptions without modifying the source.
- You want a quiet production component, since the source logs during activation and uses generic image alt text.
- Your project does not use Tailwind or path aliases and you do not want to adapt the styling and utility import.
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 project, add a client-capable React environment, configure Tailwind with the utility and data-state variants used by the component, create or replace the aliased cn class-merging helper, and ensure the alias resolves. Also remove the activation log and add your own responsive and reduced-motion treatment.
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