FANCYUI
Tune Diagram — fibre-optic beam
Esc to close
Diagram — fibre-optic beam
Light packets travel a glass fibre between two nodes and bloom on arrival.
Use in FancyUI
-
pnpm add fancy-ui-svelteimport { AnimatedBeam } from "fancy-ui-svelte";
- Type
- Interaction
- Interaction
- Ambient
- Style
- Glow
- Code availability
- Open source
Why it works
Packets with a white-hot head and a dispersing chromatic tail run along a curved fibre, then bloom where they land, so the diagram shows direction and flow rather than a static connection.
When to use it
Integration diagrams, data pipelines, agent wiring on a product page.
Things to watch
The container and both node refs must exist, so nothing draws during SSR or before mount. Reduced motion swaps in a still gradient path. A ResizeObserver recomputes the curve.
Implementation clues
- SVG path between measured rects
- curvature offsets the control point
- dash-driven packets
- duration derived from a seed