Rays

Light rays effect, perfect for drawing attention

Lighten up your website
with light rays

Make your website stand out with moving light rays.

Installation

npx shadcn@latest add "https://optiqui.com/r/rays"

RaysProps

PropTypeDescriptionDefault
classNamestringAdditional classNames applied to rays container-
rayColorstringcolor of rayswhite
rayWidthstringwidth of ray in pixels-
blurAmountstringBlur of ray in pixels22px
castDirectionfrom-right | from-left | from-centerFrom what direction cast raysfrom-left
animationDurationnumberDuration of animation5
animationDelaynumberDelay of animation0.2
staggerDelaynumberStagger of each ray0.2
raysRay[]Custom array of rays-

Ray type

PropType
rotatenumber
opacitynumber
classNamenumber
translateYstring