CursorsProNew

Spotlight

A soft spot of light follows the cursor inside a card and lights up its border.

Customize

fromColor
viaColor
toColor

Based on Spotlight (MIT license) ยท Terms of use

Props

6 properties
PropertyTypeDefaultDescription
sizenumber200Diameter of the light spot in pixels.
springOptionsSpringOptions"{ bounce: 0 }"Motion spring options: how the spot follows the cursor.
classNamestringโ€”Spot classes. Colours are set with fromColor, viaColor and toColor.
fromColorstring"#fafafa"Colour at the centre of the light.
viaColorstring"#f4f4f5"Colour halfway out.
toColorstring"#e4e4e7"Colour at the soft edge, before it fades out.

Dependencies

3 required packages

npm install motion clsx tailwind-merge

Related components

View all