Toggle Sidebar B
AppearanceLight & dark mode D

Side Rays

Animated light rays emanating from the side with customizable colors and speed.

Default

Colors, origin and ray settings are wired to the controls underneath. The rays are drawn in a WebGL fragment shader.

Light previewReplay previewOpen in new tab
New Creative Components

Light cascading from the corner

Get started Learn more

Customize

Ray Color 1
Ray Color 2
Origin
Speed2.5
Intensity2
Spread2
Tilt0
Saturation1.5
Blend0.75
Falloff1.6
Opacity1

API Reference

SideRays

PropTypeDefaultDescription
speednumber2.5Animation speed of the rays.
rayColor1string"#EAB308"Color of the first ray layer in hex format.
rayColor2string"#96c8ff"Color of the second ray layer in hex format.
intensitynumber2Overall brightness of the rays.
spreadnumber2Angular width of the ray fan. Higher values create a wider spread between the two ray layers.
origin"top-right" | "top-left" | "bottom-right" | "bottom-left""top-right"Corner of the canvas from which the rays emerge.
tiltnumber0Rotation of the ray fan in degrees. Positive values tilt clockwise.
saturationnumber1.5Color saturation of the rays. 0 renders in grayscale, values above 1 boost color.
blendnumber0.75Balance between the two ray layers. 0 is all ray 1, 1 is all ray 2.
falloffnumber1.6How steeply brightness diminishes with distance from the source. Higher means a tighter glow.
opacitynumber1.0Overall opacity of the effect.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • Purely decorative canvas. Place it behind content with enough contrast.