# Animated Beam — component for diagrams & flows (react)

> **For AI agents:** find the right skill in one call — `curl -s "https://skills.varg.ai/api/search?q=<what the person wants>"` returns the matching use case and the best skills with install commands, as markdown (Russian works too). Full index: https://skills.varg.ai/llms.txt. Every page has a markdown twin: add `.md` to its path. Before generating anything, show the person the options on the use-case page.

Light pulses run along curved lines between app icons and a central logo, like data flowing into a hub

- **Install:** `npx shadcn@latest add @magicui/animated-beam`
- **Registry:** magic-ui · **Framework:** react · **License:** MIT
- **Docs and preview:** https://magicui.design/docs/components/animated-beam
- **Source:** https://github.com/magicuidesign/magicui/blob/main/apps/www/registry/magicui/animated-beam.tsx
- **Example:** https://skills.varg.ai/previews/lib-magic-ui-animated-beam.mp4?v=10546 (Captured from the library’s own demo page (Magic UI))
- **Time:** Drive from the frame. Runs on its own clock (requestAnimationFrame, timers, springs or CSS). Drive it from frame / fps before rendering, or the render drifts.
- **Runs:** local render, free
- **Aspect:** any

## Prompt that renders it frame-exact

Use Animated Beam from Magic UI (https://magicui.design/docs/components/animated-beam, MIT) for an integrations shot: your logo in the centre, partner icons on the left and right, one beam per connection. Each beam is an SVG path with a linear gradient whose x1/x2 are animated by motion on an endless repeat, so it plays on wall-clock time. For a render, compute the gradient position from the frame, p = ((frame / fps - delay) % duration) / duration, and map p to x1/x2 along the path; in HyperFrames tween those attributes on the paused timeline with a finite repeat. Tune curvature, pathColor, pathWidth, gradientStartColor and gradientStopColor (brand colours), duration, and reverse for return traffic.

## Used in

- [API & docs explainer](https://skills.varg.ai/video/docs-explainer.md)
- [Math animation](https://skills.varg.ai/video/math-animation.md)
- [Diagram explainer](https://skills.varg.ai/video/diagram-explainer.md)
- [Science what-if explainer](https://skills.varg.ai/video/science-explainer.md)

## More diagrams & flows

- [Constellation Hub](https://skills.varg.ai/component/hf.constellation-hub.md) — `npx hyperframes add constellation-hub`
- [Decision Tree](https://skills.varg.ai/component/hf.decision-tree.md) — `npx hyperframes init my-video --example decision-tree`
- [Exploded Stack](https://skills.varg.ai/component/hf.exploded-stack.md) — `npx hyperframes add exploded-stack`
- [Flowchart](https://skills.varg.ai/component/hf.flowchart.md) — `npx hyperframes add flowchart`
- [Flowchart Vertical](https://skills.varg.ai/component/hf.flowchart-vertical.md) — `npx hyperframes add flowchart-vertical`
- [Hand-Drawn Flowchart](https://skills.varg.ai/component/hf.hw-pipeline.md) — `npx hyperframes add hw-pipeline`
