Skip to Content
ComponentsSpotlight Content

Spotlight Content

Mouse-tracked ripple effect applied to headline text.

0px

Installation

pnpm dlx shadcn@latest add https://ui.perxel.com/r/spotlight-content.json

Examples

Example component not found for “spotlight-content”.

Props

NameTypeDefault
colorstring

Background color or gradient for the spotlight area.

"#fbbf24"
durationnumber

Duration of the smooth motion in seconds.

0.4
easestring

Easing function used for the tween animation.

"power2.out"
rangeY[number, number]

Vertical clip range in percent [min, max].

[20, 70]
rangeX[number, number]

Horizontal clip range in percent [min, max].

[20, 70]
reverseXboolean

Reverse the X-axis direction when moving the mouse.

true
initial{ x: number; y: number; }

Initial clip position before any mouse movement.

{x:45, y:45}
classNamestring

Additional class names applied to the root section.

Last updated on