Lumeo

AnimatedBeam

SVG beam that traces an animated gradient path between two DOM elements.

Installation

dotnet add package Lumeo.Motion

One-time app setup (AddLumeo(), CSS & JS) is covered in the installation guide.

Usage

@using Lumeo

<AnimatedBeam />

When to Use

  • Visualize data flows between services in integration or architecture diagrams.
  • Connect icon nodes in a feature showcase or product diagram.
  • Add motion to "how it works" sections by tracing steps together.

Curvature: 30 px

DurationMs: 2500 ms

Adjust curvature and animation speed live.

API Reference

Property Type Default Description
ContainerIdstring?nullId of the position:relative container. Coordinates are measured relative to it.
FromIdstring?nullThe id of the source element.
ToIdstring?nullThe id of the destination element.
DurationMsint3000Duration of one traversal in milliseconds.
DelayMsint0Delay before the first cycle.
Curvaturedouble0Bezier control point offset in px (positive = bows up).
ReverseboolfalseReverses direction of travel.
GradientStartColorstring"#ffaa40"Start color of the beam gradient.
GradientStopColorstring"#9c40ff"End color of the beam gradient.
PathColorstring"var(--color-border)"Color of the guide track.
PathOpacitydouble0.3Opacity of the guide track (0–1).
PathWidthdouble2Width of the guide track path in px.
BeamWidthdouble2Width of the animated beam stroke in px.
  • Sparkles — Decorative sparkle particle animation.
  • Confetti — Burst confetti canvas animation triggered on demand.