
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-lightning
Advanced tools
An Angular library that renders a performant animated lightning/electricity effect using WebGL.
This library is part of the NGXUI ecosystem. View all available components at https://ngxui.com
@omnedia/ngx-lightning
is an Angular library that renders a performant animated lightning/electricity effect using WebGL. The effect is smooth, customizable, and highly performant for hero backgrounds, overlays, and live backgrounds.
npm install @omnedia/ngx-lightning
Import the NgxLightningComponent
in your Angular module or component:
import { NgxLightningComponent } from '@omnedia/ngx-lightning';
@Component({
...
imports: [
...
NgxLightningComponent,
],
...
})
Use the component in your template:
<div class="lightning-demo">
<om-lightning
[hue]="260"
[xOffset]="0.1"
[speed]="2"
[intensity]="1.6"
[size]="1.1"
[flashTimeOut]="5000"
[transparent]="false"
styleClass="custom-lightning"
></om-lightning>
</div>
<om-lightning
[hue]="hue"
[xOffset]="xOffset"
[speed]="speed"
[intensity]="intensity"
[size]="size"
[flashTimeOut]="flashTimeOut"
[transparent]="transparent"
styleClass="your-custom-class"
></om-lightning>
hue
(optional): Lightning color, hue value in degrees (default: 230
).xOffset
(optional): Horizontal offset of the bolt/arc (default: 0
).speed
(optional): Animation speed (default: 1
).intensity
(optional): Lightning intensity/brightness (default: 1
).size
(optional): Size/scale of the lightning (default: 1
).flashTimeOut
(optional): TimeOut in ms between lightning animation. If undefined the animation is continuous. (default: undefined
).transparent
(optional): Sets the background transparent (default: false
).styleClass
(optional): Additional class for custom styling.The lightning canvas is absolutely positioned and fills its container. Use CSS to set your desired size/aspect:
.lightning-demo {
width: 100vw;
height: 40vh;
position: relative;
background: #000;
overflow: hidden;
}
.custom-lightning {
filter: blur(0.5px);
}
Contributions are welcome. Please submit a pull request or open an issue to discuss your ideas.
MIT
FAQs
An Angular library that renders a performant animated lightning/electricity effect using WebGL.
We found that @omnedia/ngx-lightning 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.