Velora UI

Glowing Effect

Border glow that follows the pointer around a card's edge as it comes near.

  • 1.8 KB gzipped
  • Zero dependencies
  • Reduced-motion safe
  • Base UI & Radix compatible
Open in v0

Follows your pointer

Bring the cursor near any edge and the border lights up where you are.

Learn more

Installation

pnpm dlx shadcn@latest add https://velora.colorlib.com/r/glowing-effect.json

Adds components/velora/glowing-effect.tsx.

Examples

Feature grid

Six feature cards in a three-column grid, each lighting up as the pointer nears it.

Fast by default

Ships static HTML and hydrates only what moves.

Themeable

Seven CSS variables re-skin every component.

Accessible

Keyboard paths and reduced-motion states built in.

Tiny

Most components weigh under 2 KB gzipped.

Composable

Plain React and Tailwind, no wrappers to fight.

MIT licensed

Copy it, change it, ship it commercially.

Props

PropTypeDefault
proximity

Distance in px outside the card at which the glow starts to fade in

number64
spread

Length of the lit arc, in degrees of the border

number80
borderWidth

Thickness of the glowing border in px

number2
halo

Add a soft blurred halo behind the lit border

booleantrue

Also accepts every <div> attribute, forwarded to the root element.

Accessibility

Reduced motion
The arc stops following the pointer; hovering the card shows a soft glow around the whole border instead.
Keyboard
The effect is not focusable; the full border lights up while the card or anything inside it has keyboard focus.
Screen readers
The glow layer is aria-hidden and ignores pointer events; only the card content is read.