Micro-interactions

Border Glow

A cursor-proximity gradient border with an outer glow.

Adapted from React Bits

Install

# BorderGlow needs no npm packages

Props

PropTypeDefaultDescription
glowColorstring (hex)"#a855f7"Glow color.
glowRadiusnumber12Outer glow radius.
glowIntensitynumber1Glow brightness.
coneSpreadnumber35Angular spread of the glow cone.
edgeSensitivitynumber30How close to the edge the glow activates.
borderRadiusnumber16Corner radius.
fillOpacitynumber0.5Border fill opacity.
animatedbooleanfalsePlay an intro sweep on mount.

What It Demonstrates

Hover effect
Visual change when the cursor moves over an element.
Interpolation / Tween
Generating all the in-between frames between a start and end value, so motion is continuous.

Related Components

Appears In