Measured entry
magicui-scroll-based-velocity
scroll-effectspatialmotion on file
A client-side React marquee whose repeated rows speed up and reverse with page scroll. It ships as a shadcn registry TSX component, uses Motion for values and animation, and expects Tailwind utility classes plus the usual cn helper. It also relies on browser observers and motion preference APIs.



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, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 74.0 KB (139.5 KB build, 65.5 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 921ms error during build: [vite:load-fallback] Could not load <sandbox>re-9c8ab6a11ae0/src/lib/utils (imported by src/cut/scroll-based-velocity.tsx): ENOENT: no such file or directory, open '<sandbox>re-9c8ab6a11ae0/src/lib/utils'
Verdict
A capable, carefully bounded scroll-reactive marquee, but it adds a substantial animation dependency and showed horizontal overflow across the tested layouts. It needs a shadcn-style setup as supplied because the bare project cannot resolve its cn utility import.
Use it if
- You need a continuously moving text band that reacts to scroll direction and speed.
- Your React app already uses Tailwind and Motion, and can host a client-only component.
- You want repeated rows to pause work when offscreen and respect reduced-motion preferences.
Skip it if
- Any horizontal page overflow is unacceptable without additional containment and testing.
- You need meaningful interactive content inside the repeated row rather than decorative or promotional text.
- You want a lightweight static ticker and do not otherwise need Motion.
- Your rendering target lacks the browser observer and media-query APIs this component uses.
Install
| Declared dependencies | motion, clsx, tailwind-merge |
|---|---|
| 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 Motion, Tailwind utility styling, and a cn helper backed by clsx and tailwind-merge. Configure the source alias for the utility import or replace it with a local relative path, and keep the component on the client.
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/magicuidesign/magicuiAlternatives
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