Measured entry
fancy-stacking-cards
scroll-effect3dmotion on file
A client-side React compound component that turns a vertical card sequence into a sticky, scroll-driven stack with progressive scaling. It ships as a shadcn registry TypeScript file and depends on Motion, Tailwind utility classes, React context, and the usual cn helper imported through the project alias.



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 | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 2 |
| Axe minor | 0 |
| Gzip marginal | 69.5 KB (134.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 31.65s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/fancy/blocks/stacking-cards.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A focused effect with a clear compound API, suitable for editorial or feature storytelling when the motion earns its cost. It builds and mounts in the prepared harness, but the bare failure shows it needs a shadcn-style setup, specifically the aliased cn utility, before it can compile elsewhere.
Use it if
- You need a narrative card sequence whose layers accumulate as the reader scrolls.
- Your app already uses Tailwind, Motion, and shadcn-style aliases and utilities.
- You want control over each card's content, index, top position, and scaling behavior.
Skip it if
- You need a lightweight card list without adding Motion and its associated bundle cost.
- Your content must remain compact rather than reserving enough vertical space for sticky stacking.
- Your design system does not use Tailwind utilities or a shadcn-style cn helper.
- You want a single component that accepts an items array instead of composing indexed child items.
Install
| Declared dependencies | motion |
|---|---|
| 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, install Motion, provide React client-component support, configure the project alias, add a compatible cn class-merging helper, and ensure Tailwind supplies the sticky, sizing, positioning, and transform-origin utilities used by the source. Alternatively, replace the aliased helper import with your local equivalent.
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/danielpetho/fancyAlternatives
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.
- reui-scrollspyminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 21.5KB
- Bare
- pass
- Prov
- NO
- kibo-marqueeminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 31.3KB
- Bare
- pass
- Prov
- NO
- motion-primitives-in-viewspatial
- Renders
- YES
- A11y
- 0
- Gzip
- 58.1KB
- Bare
- pass
- Prov
- NO
- tripled-interactive-timeline-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 58.7KB
- Bare
- pass
- Prov
- NO
- ruixen-container-text-scrollspatial
- Renders
- YES
- A11y
- 0
- Gzip
- 61.5KB
- Bare
- pass
- Prov
- NO
- fancy-parallax-floating3d
- Renders
- YES
- A11y
- 0
- Gzip
- 27.5KB
- Bare
- fail
- Prov
- NO