
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@omnedia/ngx-connection-beam
Advanced tools
A simple component library to connect elements with an animated beam.
This Library is part of the NGXUI ecosystem.
View all available components at https://ngxui.com
@omnedia/ngx-connection-beam is an Angular component that dynamically renders animated connection lines between two elements. With customizable curvature, colors, and animation settings, it creates visually striking connection beams between any two elements in your Angular application.
Install the library using npm:
npm install @omnedia/ngx-connection-beam
Import the NgxConnectionBeamComponent in your Angular module or component:
import {NgxConnectionBeamComponent} from '@omnedia/ngx-connection-beam';
@Component({
...
imports:
[
...
NgxConnectionBeamComponent,
],
...
})
Use the component in your template:
<div class="wrapper">
<div #elementA></div>
<div #elementB></div>
<om-connection-beam
[fromRef]="elementA"
[toRef]="elementB"
[curvature]="50"
[pathColor]="'#ff5733'"
[pathWidth]="3"
[duration]="6"
[gradientStartColor]="'#ffcc00'"
[gradientStopColor]="'#3498db'"
>
</om-connection-beam>
</div>
<om-connection-beam
[fromRef]="fromElement"
[toRef]="toElement"
[curvature]="curvature"
[pathColor]="pathColor"
[pathWidth]="pathWidth"
[pathOpacity]="pathOpacity"
[gradientStartColor]="gradientStartColor"
[gradientStopColor]="gradientStopColor"
[duration]="duration"
[delay]="delay"
[reverse]="reverse"
[startXOffset]="startXOffset"
[startYOffset]="startYOffset"
[endXOffset]="endXOffset"
[endYOffset]="endYOffset"
>
</om-connection-beam>
fromRef (required): A reference to the HTML element where the connection starts.toRef (required): A reference to the HTML element where the connection ends.curvature (optional): Curvature of the beam, defining how much the path curves between the two points. Defaults to 0.pathColor (optional): The color of the connection path. Defaults to 'gray'.pathWidth (optional): The width of the connection path. Defaults to 2px.pathOpacity (optional): The opacity of the connection path. Defaults to 0.2.gradientStartColor (optional): The color at the start of the gradient. Defaults to '#ffaa40'.gradientStopColor (optional): The color at the end of the gradient. Defaults to '#9c40ff'.duration (optional): Duration of the animation in seconds. Defaults to a random value between 4 and 7.delay (optional): Delay before the animation starts, in seconds. Defaults to 0.reverse (optional): Reverses the direction of the gradient animation. Defaults to false.startXOffset, startYOffset, endXOffset, endYOffset (optional): Offsets to fine-tune the start and end positions of the beam relative to the elements.
<div class="wrapper">
<div #startElement></div>
<div #endElement></div>
<om-connection-beam
[fromRef]="startElement"
[toRef]="endElement"
[curvature]="100"
[pathColor]="'#e74c3c'"
[gradientStartColor]="'#e74c3c'"
[gradientStopColor]="'#9b59b6'"
[duration]="5"
[reverse]="true"
>
</om-connection-beam>
</div>
This example draws a curved connection beam between two elements with a red-to-purple gradient that animates over 5 seconds.
Contributions are welcome. Please submit a pull request or open an issue to discuss your ideas.
This project is licensed under the MIT License.
FAQs
A simple component library to connect elements with an animated beam.
We found that @omnedia/ngx-connection-beam demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.