Animated Beam
Light pulses that travel along beams between elements.
Features
- •Connect anything by name — Wrap any element in <BeamNode id>, then draw <Beam from to /> between names: no refs to wire up. Beams tuck in behind the boxes they join.
- •Ready-made workflow — <BeamWorkflow> gives you inputs → hub → outputs in one line, with a logo prop for every box (image URL or your own icon) and synced pulses that all reach the hub together.
- •Step, curve or straight — Rounded elbow steps like a workflow builder, node-editor S-curves, or straight lines, with adjustable bend, thickness, colours, pulse length, pulse count and direction.
- •Responsive by measurement — Beams follow where the boxes actually are and re-measure on any resize or reflow. A row on desktop becomes a stack on mobile and every beam re-routes vertically on its own.
- •Light on resources — Measurements are batched to one per frame, pulses pause offscreen, and with reduced motion the beams show fully lit without moving.
- •Works in Framer — The workflow exports as a Framer code component with controls for style, timing, colours, sizes and every logo.
Props API Reference
25 configurable props| Prop | Type | Default | Description |
|---|---|---|---|
| BeamWorkflow · hubLogo | string | ReactNode | Dot mark | Logo in the centre box: an image URL or any element. |
| BeamWorkflow · inputLogos | (string | ReactNode | undefined)[] | 3 built-in icons | One logo per input box; the count sets how many inputs there are. Empty entries keep the built-in icon. |
| BeamWorkflow · outputLogos | (string | ReactNode | undefined)[] | 3 built-in icons | One logo per output box. |
| BeamWorkflow · hubSize | number | 36 | Hub logo height in px; the box scales with it. |
| BeamWorkflow · iconSize | number | 20 | Other logos' height in px. |
| BeamWorkflow · nodeColor | string | "#111114" | Box background. |
| BeamWorkflow · nodeBorderColor | string | "rgba(255,255,255,0.1)" | Box border colour. |
| BeamWorkflow · iconColor | string | "#E4E4E7" | Colour of the built-in icons. |
| BeamWorkflow · stackBelow | number | 576 | Stacks vertically when the component is narrower than this, in px. |
| BeamNode · id | string | required | Name beams use to connect to this element. |
| Beam · from / to | string | required | ids of the BeamNodes the beam starts and ends at. |
| Beam · variant | "step" | "curve" | "straight" | "step" | Rounded elbow, S-curve or straight line. |
| Beam · orientation | "auto" | "horizontal" | "vertical" | "auto" | Flow direction; auto follows where the nodes sit. |
| Beam · bend | number | 0.5 | Curve tension, or where the step's elbow sits between the nodes (0–1). |
| Beam · cornerRadius | number | 12 | Corner radius of step beams, in px. |
| Beam · duration | number | 1.7 | Seconds for one pulse to travel the beam. |
| Beam · delay | number | 0 | Seconds before the first pulse. |
| Beam · pulses | number | 1 | Pulses travelling the beam at once, evenly spaced. |
| Beam · pulseLength | number | 0.25 | Pulse length as a fraction of the beam (0–1). |
| Beam · reverse | boolean | false | Send pulses from `to` back to `from`. |
| Beam · thickness | number | 1 | Line width in px. |
| Beam · colorFrom / colorTo | string | "#FF5A1F" / "#FFC46B" | Pulse gradient from the start node to the end node. |
| Beam · trackColor | string | "currentColor" | Resting line colour; follows the surrounding text colour by default. |
| Beam · trackOpacity | number | 0.1 | Resting line opacity. |
| Beam · glow | boolean | false | Soft light around the pulse. |