Measured entry

fancy-parallax-floating

scroll-effect3dmotion on file

A client-side React wrapper that gives absolutely positioned child layers a cursor-driven depth effect. It ships as a shadcn registry component and uses Motion's animation frame hook, a companion mouse-position hook, a cn utility, and utility classes.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of fancy-parallax-floating at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of fancy-parallax-floating at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of fancy-parallax-floating 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 fancy-parallax-floating
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
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 34.25s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/fancy/image/parallax-floating.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A focused choice for pointer-reactive layered artwork, with a clean verified build in its intended environment. It needs a shadcn-style setup and will not mount bare because its shared utility and companion hook are expected to exist.

Use it if

  • You are building a layered hero, collage, or product scene whose elements should drift with pointer movement.
  • Your layout already has a positioned container and you can assign depth values to separately placed child layers.
  • Your React app already follows shadcn-style aliases and utility-class conventions.

Skip it if

  • The interaction must work equally well on touch-only devices, since the effect follows a mouse position.
  • Your content needs to stay in normal document flow rather than being arranged as absolute layers.
  • You want a scroll-linked parallax effect; this component responds to pointer movement instead.
  • You cannot justify a continuously running animation loop for a decorative interaction.

Install

Installation record for fancy-parallax-floating
Declared dependenciesmotion
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, add the companion mouse-position hook, provide a compatible cn class-merging utility, configure the source aliases, and supply equivalents for the utility classes. The host must support client-side React components.

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.

License
MIT
Record published
2026-08-13

Alternatives

Other published entries for the scroll-effect pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.