Toggle Sidebar B
AppearanceLight & dark mode D

Light Rays

Volumetric light rays/beams with customizable direction.

Default

Every prop is wired to the controls underneath. Move the pointer over the page and the rays lean toward it.

Light previewReplay previewOpen in new tab
New Creative Components

May these lights guide you on your path

Get started Learn more

Customize

Rays Color
Rays Origin
Rays Speed1
Light Spread0.5
Ray Length3
Fade Distance1
Saturation1
Mouse Influence0.1
Noise Amount0
Distortion0

API Reference

LightRays

PropTypeDefaultDescription
raysOriginstring"top-center"Origin position of the light rays. Options: 'top-center', 'top-left', 'top-right', 'right', 'left', 'bottom-center', 'bottom-right', 'bottom-left'.
raysColorstring"#ffffff"Color of the light rays in hex format.
raysSpeednumber1Animation speed of the rays.
lightSpreadnumber1How wide the light rays spread. Lower values = tighter rays, higher values = wider spread.
rayLengthnumber2Maximum length/reach of the rays.
pulsatingbooleanfalseEnable pulsing animation effect.
fadeDistancenumber1.0How far rays fade out from origin.
saturationnumber1.0Color saturation level (0-1).
followMousebooleantrueMake rays rotate towards the mouse cursor.
mouseInfluencenumber0.1How much mouse affects rays (0-1).
noiseAmountnumber0.0Add noise/grain to rays (0-1).
distortionnumber0.0Apply wave distortion to rays.
lightModebooleanfalseRenders the rays as ink on a white background.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • Purely decorative canvas with pointer events disabled. The canvas is only built while the container is on screen. Set pulsating off and mouseInfluence to 0 for users who prefer reduced motion.