From Infinity UI by Infinity UI, LicenseRef-InfinityUI license.
UI templates
Starting…
Pick a UI template to include it in the prompt.
Usage with these values
import { BeamFan } from "@/components/effects/beam-fan/beam-fan";
export default function Background() {
return (
<BeamFan
className="h-svh w-full"
color="#78b6ff"
color2="#ffb35c"
backgroundColor="#05070d"
offsetX={0.04}
offsetY={-0.06}
spread={64}
beamCount={11}
beamSoftness={0.55}
beamLength={0.72}
brightness={1}
haze={0.55}
dust={0.5}
colorSplit={0}
grain={0.15}
swaySpeed={1}
lean={0.6}
pulseStrength={1}
interactive={true}
/>
);
}Colours
Controls
Coloured shafts of light fan in from a corner through drifting haze, with dust lit only inside the beams. The fan leans toward the cursor and a click sends a pulse down every shaft. One shared WebGL2 context, pauses off screen, a composed still frame under reduced motion, CSS fallback.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string (hex colour) | "#78b6ff" | Main tint of the light shafts; most of the fan takes this colour. |
| color2 | string (hex colour) | "#ffb35c" | Tint of the shafts on the far edge of the fan, blended with the main colour. |
| backgroundColor | string (hex colour) | "#05070d" | Backdrop colour. A pale backdrop draws the shafts as ink instead of glow. |
| offsetX |























