Skip to content
roguelite labsAnthony Spezzano ↗
motion/glow-effect

Glow Effect

Soft box-shadow glow that intensifies as the cursor approaches the element center. Pure React state.

Use and inspectUse this when the motion supports the surrounding content. Connect callbacks and state to your app, keep the reset preview as a local demonstration, and add a reduced-motion fallback for movement or looping. The preview is synthetic; it does not call a backend.Next: inspect the source below and replace the demo inputs with your own data.
Glow EffectSoft box-shadow glow that intensifies as the cursor approaches the element center. Pure React state.

Props

PropTypeDefaultDescription
childrenrequiredReactNodeContent to wrap with glow
colorstring"#7c3aed"Glow color
blurnumber20Max glow blur radius in px
spreadnumber4Max glow spread in px