Measured entry
magicui-animated-beam
background-effectspatialmotion on file
A client-side React SVG overlay that draws an animated gradient path between two referenced elements. It ships as a shadcn registry TypeScript component, measures its container and endpoints with ResizeObserver, animates through Motion, and imports the usual shadcn cn utility alongside Tailwind utility classes.



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 | 66.9 KB (132.3 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 25.08s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/animated-beam.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A focused connector effect with a sensible prop surface, but it is integration code rather than a standalone demo. The generic harness could not mount it because its required refs were absent, and a bare project needs a shadcn-style setup before it will build.
Use it if
- You need to visualize a connection between two elements in an integration map or workflow diagram.
- Your layout can provide stable refs for the container, source, and destination elements.
- Your app already uses shadcn conventions, Tailwind utilities, and Motion.
Skip it if
- You need a drop-in component that can render without wiring element refs.
- Your interface must avoid continuous decorative motion or does not provide a reduced-motion treatment.
- You want to avoid adding Motion for a single decorative connector.
- The connected elements move independently without causing the observed container to resize.
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, provide a client-rendered environment and a ResizeObserver-capable browser, add a cn class-merging helper at the expected alias or change that import, and supply equivalent Tailwind utilities or replace the utility classes with your own CSS. Render it with valid container, source, and destination refs.
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 background-effect pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- ruixen-loading-circlegradient-glow
- Renders
- YES
- A11y
- 0
- Gzip
- 17.7KB
- Bare
- pass
- Prov
- NO
- eldora-hacker-backgrounddark-futuristic
- Renders
- YES
- A11y
- 0
- Gzip
- 17.8KB
- Bare
- pass
- Prov
- NO
- ruixen-ripple-circlesgradient-glow
- Renders
- YES
- A11y
- 0
- Gzip
- 17.9KB
- Bare
- pass
- Prov
- NO
- ruixen-dual-tone-rain-backgroundunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 18.4KB
- Bare
- pass
- Prov
- NO
- cultui-lightboardliquid-glass
- Renders
- YES
- A11y
- 0
- Gzip
- 19.6KB
- Bare
- pass
- Prov
- NO
- ruixen-mouse-sparkunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 20.6KB
- Bare
- pass
- Prov
- NO