BackgroundsProNew

Light Rays

Soft light beams fall from the top and slowly sway. A calm backdrop for a hero section.

Customize

color

Based on Light Rays (MIT license) · Terms of use

Props

6 properties
PropertyTypeDefaultDescription
countnumber7Number of rays.
colorstring"rgba(255, 255, 255, 0.18)"Ray color. Works best with some transparency.
blurnumber36Ray blur, in pixels.
speednumber14Cycle length of a ray, in seconds. Higher is slower.
lengthstring"70vh"Ray length in any CSS unit.
classNamestring—Classes for the rays layer.

Dependencies

3 required packages

npm install motion clsx tailwind-merge

Related components

View all