Installation
- Tab Title
- Tab Title
Usage
Props
Reference to the container element that wraps both from and to elements.
Reference to the source element where the beam starts.
Reference to the target element where the beam ends.
Additional CSS classes to apply to the SVG element.
Controls the curvature of the beam path. Higher values create more curved paths.
Reverses the animation direction of the gradient.
Duration of the beam animation in seconds.
Delay before the animation starts in seconds.
Color of the static path line.
Width of the path stroke in pixels.
Opacity of the static path line (0-1).
Starting color of the animated gradient.
Ending color of the animated gradient.
Horizontal offset from the source element’s position in pixels.
Vertical offset from the source element’s position in pixels.
Horizontal offset from the target element’s position in pixels.
Vertical offset from the target element’s position in pixels.
Examples
Custom Gradient Colors
Curved Path
With Offsets
Features
- Automatically calculates the path between two elements
- Smooth animated gradient effect
- Responsive to element position changes
- Customizable colors, curvature, and animation timing
- Built-in resize observer for dynamic layouts