Measured entry
fancy-scroll-and-swap-text
scroll-effect3dmotion on file
A client-side React text treatment that renders the same child text in overlapping layers and slides them vertically from scroll progress. It ships as shadcn registry source, uses Motion hooks, Tailwind utility classes, a local cn helper, and a required ref to the scrolling container.



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 | 0 |
| Axe minor | 0 |
| Gzip marginal | 70.0 KB (135.4 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 22.36s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/fancy/text/scroll-and-swap-text.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A focused scroll-linked text roll that builds, mounts, stays within its viewports, and raises no automated accessibility findings in the harness. The API is less turnkey than the name suggests, and it needs a shadcn-style setup rather than working bare.
Use it if
- You want a short heading or label to roll vertically as its containing region scrolls.
- Your interface already uses Motion and can provide a stable scroll-container ref.
- You want copied source that can be adjusted alongside an existing Tailwind component system.
Skip it if
- You expect it to rotate through different words, because both animated layers repeat the same extracted text.
- Your page scrolls only through the document and you do not want to manage a dedicated container ref.
- You need rich child markup preserved, because the component reduces nested children to plain text.
- You want to avoid adding Motion for a single decorative text effect.
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 React project, install Motion, add or replace the cn class-merging helper, configure the source path alias or change that import, and provide equivalent Tailwind utilities. Render it on the client and pass a ref attached to the intended scroll container.
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