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.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of magicui-scroll-based-velocity at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of magicui-scroll-based-velocity at 768 pixels wide
Harness screenshot at 768 pixels wide. This viewport scrolled sideways.
Harness screenshot of magicui-scroll-based-velocity at 1440 pixels wide
Harness screenshot at 1440 pixels wide. This viewport scrolled sideways.

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 magicui-scroll-based-velocity
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal74.0 KB (139.5 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten 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

Installation record for magicui-scroll-based-velocity
Declared dependenciesmotion, clsx, tailwind-merge
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 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.

License
MIT
Record published
2026-08-17

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.