Light Rays
Cast soft animated rays from any edge or corner.
light-rays-demo
Overview
Light Rays creates a directional atmospheric wash with controllable spread, length, color, noise, and distortion. It can originate from any edge or corner of its container.
Installation
Usage
import { LightRays } from "honestui/shaders"
<div className="h-80 bg-black">
<LightRays
className="size-full"
raysColor="#b8d6ff"
raysOrigin="top-right"
lightSpread={0.72}
followMouse={false}
/>
</div>Accessibility
Light Rays ignores pointer events and should stay decorative. Keep the foreground readable without the rays. The component renders a static frame when the user enables reduced motion; use paused for application-specific control. Provide a static background when WebGL is unavailable.