Glowing Effect Cards, animated React component
Cards wrapped in a hairline rim that lights up on the side nearest the pointer: the lit arc chases the pointer round the edge on a spring, neighbouring cards catch the light as the pointer nears them, and a press flares it. Ships as GlowingEffect (wrap anything), GlowingCard (icon, title, line, call to action) and GlowingCardsLayout (a 2-1-2 grid that stacks by container width). Also includes Lit Border: A wrapper for any element: <LitBorder> draws a thin border whose light band turns to face the pointer and brightens as it gets closer. Put several inside <LightGroup> and they share one light, shown here on pricing cards and a search field.
- Free
- Cards
- Hover
- Spring
- Glow
2-1-2 layout
Single card and custom wrapper
Lit Border
Like Glowing Effect Cards? 256 more are in Pro.
Pro unlocks all 256 Pro components, every template and block, and everything we release next. Glowing Effect Cards stays free.
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Move across the cards.
Interface polish
Borders that answer the cursor.
Live metrics
Every signal on one card.
Control rail
A tall card that keeps the key actions in reach.
Secure by default
Trust, shown plainly.
Composable
Mix blocks across pages.
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| cards | GlowingCardProps[] | DEFAULT_GLOW_CARDS | GlowingCardsLayout: five cards, two left, one tall centre, two right. |
| autoplay | boolean | false | GlowingCardsLayout: sweeps a light across the cards until someone moves over them. |
| hint | string | "Move across the cards." | GlowingCardsLayout: caption above the grid. An empty string hides it. |
| title / description | string | — | GlowingCard: heading and one line of copy. |
| icon | ReactNode | — | GlowingCard: icon in the tinted tile. |
| accent | string | "#0071e3" | GlowingCard: tint for the icon tile and call to action. |
| cta / href | string | — | GlowingCard: call-to-action label, and a link that makes the whole card clickable. |
| tall | boolean | false | GlowingCard: spreads the content for a tall card. |
| colors | string[] | ["#5ac8fa", "#0a84ff", "#bf5af2", "#ff375f", "#ff9f0a"] | GlowingEffect: colours along the lit arc, tail to head (glowColor sets just the first). |
| spread | number | 90 | GlowingEffect: width of the lit arc in degrees. |
| proximity | number | 72 | GlowingEffect: how far outside the card the pointer still lights it, in px. |
| intensity | number | 1 | GlowingEffect: rim thickness and brightness (0.5 to 2). |
| blur | number | 18 | GlowingEffect: blur of the bloom outside the rim, in px. |
| borderRadius | string | "22px" | GlowingEffect: corner radius. |
| disabled | boolean | false | GlowingEffect: turns the light off. |
| LitBorder.children | React.ReactNode | — | Lit Border: the element to wrap. A card, an input, a button, anything. |
| LitBorder.radius | number | 24 | Lit Border: outer corner radius in px. Use 999 for pills. |
| LitBorder.width | number | 1.5 | Lit Border: border thickness in px. |
| LitBorder.colors | [string, string, string] | ["0,113,227", "94,92,230", "48,209,88"] | Lit Border: three RGB triplets for the lit arc, head, middle and tail. |
| LitBorder.className | string | — | Lit Border: extra classes for the outer frame, for example h-full in a grid. |
| LightGroup.children | React.ReactNode | — | Light Group: the elements that share one light, usually several LitBorders. |
| LightGroup.autoplay | boolean | false | Light Group: the light circles the group on its own until the first real pointer arrives. Never runs under reduced motion. |
| LightGroup.className | string | — | Light Group: extra classes for the wrapper. |
Add it to your project
- 1
Set up your project once
You need a Next.js project with Tailwind CSS and the
@/import alias. In its root folder, run this once. It createscomponents.jsonand thecn()helper insrc/lib/utils.ts:npx shadcn@latest init -d
Starting from nothing? The Quick Start walks through the whole thing.
- 2
Connect the registry
Run this once per project. It writes the Nexus UI entry into
components.jsonfor you:npx shadcn@latest registry add "@nexus-labs=https://www.nexus-ui.com/api/registry/{name}"Type it exactly as shown.
{name}is filled in by the CLI with the component you ask for, so you never replace it.
- 3
Add the component
Run this from your project root. It adds the component, the helpers it imports and its npm packages.
npx shadcn@latest add @nexus-labs/glowing-effect-cards
- 4
Check what was added
With a project made as in the Quick Start (a
src/folder), these files land in it:components/glowing-effect-cards/GlowingCard.tsxGlowingCardsLayout.tsxGlowingEffect.tsxindex.tslit-border.tsx - 5
Copying by hand? Skip the registry
Instead of steps 2 and 3 you can copy the files yourself, with no registry and no API key. Step 1 still applies, so that
cn()exists. Install the packages:npm install framer-motion
Then show the source and create each file at the path it gives:
- 6
Use it in a page
Installing only adds the files. Import the component in a page and render it. The Usage tab on the preview shows a fuller example with props:
// src/app/page.tsx import { GlowingCardsLayout } from "@/components/glowing-effect-cards"; export default function Page() { return ( <main> <GlowingCardsLayout /> </main> ); }
Like Glowing Effect Cards? 256 more are in Pro.
Pro unlocks all 256 Pro components, every template and block, and everything we release next. Glowing Effect Cards stays free.
About Glowing Effect Cards
Glowing Effect Cards is a card grid where each card has a cursor-tracked glow border that follows mouse movement across the card surface. The glow gradient repositions as the cursor moves using a mousemove event handler, creating a spotlight that appears to emanate from the cursor's position. When multiple cards share the same parent, a single event listener coordinates the glow across the entire grid. Use it for feature sections, pricing tiers, and service grids.
Good for
- Product feature grids
- Pricing plan card sets
- Service and offering tile grids
- Capability showcase sections
Glowing Effect Cards questions
Can I put the glow around my own content?
Yes. Wrap any content in `GlowingEffect`. `GlowingCard` is a ready-made card with title, description, icon and CTA, and `GlowingCardsLayout` is the 2-1-2 grid from the demo.
Which props control the glow?
`intensity` (clamped between 0.45 and 2.4) scales the glow, `blur` softens it, `borderRadius` matches your card shape and `disabled` turns it off. The three glow colors are set inside GlowingEffect.tsx, so edit them there to match your brand.
Does it work with the keyboard?
Each card is focusable and lights up on focus. For users who prefer reduced motion, the glow no longer tracks the pointer.
How do I install it?
Run `npx shadcn@latest add @nexus-labs/glowing-effect-cards`. It comes with Pro and uses framer-motion and lucide-react.