Toggle Sidebar B
AppearanceLight & dark mode D

Lightning

Procedural lightning bolts with branching and glow flicker.

Default

Every prop is wired to the controls underneath. The bolt is drawn in a WebGL fragment shader.

Light previewReplay previewOpen in new tab
New Creative Components

The power of nature's fury, with Levenium UI!

Get started Learn more

Customize

Hue260
X Offset0
Speed1
Intensity1
Size1

API Reference

Lightning

PropTypeDefaultDescription
huenumber230Hue of the lightning in degrees (0 to 360).
xOffsetnumber0Horizontal offset of the lightning in normalized units.
speednumber1Animation speed multiplier for the lightning.
intensitynumber1Brightness multiplier for the lightning.
sizenumber1Scale factor for the bolt size.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • Purely decorative canvas. The shader flickers the bolt brightness every frame, so place it behind content with enough contrast and avoid it on pages aimed at users sensitive to flashing.