
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@omnedia/ngx-halo
Advanced tools
A simple component library to create a container with an halo gradient background.
This Library is part of the NGXUI ecosystem.
View all available components at https://ngxui.com
@omnedia/ngx-halo
is an Angular library that creates a beautiful, animated halo effect. This component provides a circular, gradient-based effect with smooth animations and interactive mouse tracking. It's perfect for enhancing the visual experience of your Angular applications.
Install the library using npm:
npm install @omnedia/ngx-halo
Import the NgxHaloComponent
in your Angular module or component:
import { NgxHaloComponent } from '@omnedia/ngx-halo';
@Component({
...
imports: [NgxHaloComponent],
...
})
Use the component in your template:
<om-halo [animate]="true" [interactive]="true" [position]="'center'" [haloSize]="'300px'" [haloColors]="'#ff0000, #00ff00, #0000ff'">
<h1>Your Content Here</h1>
</om-halo>
animate
input.haloSize
, haloColors
, and haloShadow
).position
input.styleClass
input.<om-halo
[animate]="animate"
[interactive]="interactive"
[position]="position"
[haloSize]="haloSize"
[haloColors]="haloColors"
[haloShadowColors]="haloShadowColors"
styleClass="custom-halo-class"
>
<ng-content></ng-content>
</om-halo>
animate
(optional): A boolean to control if the halo is animated by default. Defaults to true
.interactive
(optional): A boolean to enable or disable mouse interaction. Defaults to true
.position
(optional): Sets the halo's initial position. Accepts values like 'center'
, 'top-left'
, 'bottom-right'
, etc.haloSize
(optional): A string defining the halo's size (e.g., '300px'
).haloColors
(optional): A string representing the gradient colors for the halo effect. Default '#5fffda 20%, #46a8ff 50%, #cc32f6 100%'
.haloShadowColors
(optional): An array of strings defining the halo's box shadow. Default ['rgba(234, 255, 95, 0.8)', 'rgba(244, 173, 108, 0.5)', 'rgba(225, 71, 181, 0.6)']
.styleClass
(optional): A custom CSS class for additional styling.<om-halo [animate]="true" [interactive]="true" position="top-right" haloSize="400px" haloColors="'#f00, #0f0, #00f'" [haloShadowColors]="['rgba(234, 255, 95, 0.8)', 'rgba(244, 173, 108, 0.5)', 'rgba(225, 71, 181, 0.6)']" styleClass="custom-halo-style">
<div class="inner-content">
<h2>Welcome to the Halo Effect</h2>
</div>
</om-halo>
.om-halo
The .om-halo
container allows you to apply global or custom styles using the styleClass
input. The component manages the gradient and animation, while you can extend the styling for the container itself.
<om-halo styleClass="custom-halo-background">
<div class="inner-content">
<h2>Custom Halo Styling Example</h2>
</div>
</om-halo>
.custom-halo-background {
background-color: #1e1e1e;
padding: 2rem;
border-radius: 10px;
}
.inner-content {
text-align: center;
color: white;
}
Contributions are welcome! Please submit a pull request or open an issue to discuss new features or bug fixes.
This project is licensed under the MIT License.
FAQs
A simple component library to create a container with an halo gradient background.
We found that @omnedia/ngx-halo 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 uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.