ONONC

Light Rays

Volumetric shafts of light streaming from an off-screen edge, fanning and swaying.

canvasinteractive

Customize

Source

Origin
Light spread1

Lower = tighter, more focused cone.

Ray length2

Motion

Speed1
Pulsating

Appearance

Color
Saturation1
Fade distance1
Noise0
Distortion0
Detail8px

Smaller = smoother, heavier.

Interaction

Follow cursor
Cursor influence0.1

Props

PropTypeDefaultDescription
origin"top-center" | "top-left" | "top-right" | "left" | "right" | "bottom-center" | "bottom-left" | "bottom-right""top-center"Which edge the rays stream from.
colorstring"255,255,255"Ray tint as r,g,b (white lets the blue-weighted falloff show).
speednumber1Animation speed multiplier (0 = frozen).
lightSpreadnumber1Beam tightness — lower is a tighter, more focused cone.
rayLengthnumber2How far the rays reach, as a multiple of the width.
pulsatingbooleanfalseGently pulse the whole beam.
fadeDistancenumber1Distance over which rays fade, as a multiple of the width.
saturationnumber1Colour saturation (0 = greyscale, 1 = full).
followMousebooleantrueBend the rays toward the cursor.
mouseInfluencenumber0.1How strongly the cursor bends the rays (0–1).
noiseAmountnumber0Animated grain mixed into the rays (0–1).
distortionnumber0Travelling wobble warping the rays (0–1).
detailnumber8Canvas shading cell size in px (smaller = smoother, heavier).
childrenReactNodeContent layered above the canvas.
classNamestringExtra classes for the wrapper.