Skip to content

NewMCP server for your coding agent. Set it up ›

Nexus UI
Get Pro

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.

Components

Live metrics

Every signal on one card.

Dashboard

Control rail

A tall card that keeps the key actions in reach.

Manage flow

Secure by default

Trust, shown plainly.

Policy

Composable

Mix blocks across pages.

Templates

Props

PropTypeDefaultWhat it does
cardsDEFAULT_GLOW_CARDSGlowingCardsLayout: five cards, two left, one tall centre, two right.
autoplayfalseGlowingCardsLayout: sweeps a light across the cards until someone moves over them.
hint"Move across the cards."GlowingCardsLayout: caption above the grid. An empty string hides it.
title / description—GlowingCard: heading and one line of copy.
icon—GlowingCard: icon in the tinted tile.
accent"#0071e3"GlowingCard: tint for the icon tile and call to action.
cta / href—GlowingCard: call-to-action label, and a link that makes the whole card clickable.
tallfalseGlowingCard: spreads the content for a tall card.
colors["#5ac8fa", "#0a84ff", "#bf5af2", "#ff375f", "#ff9f0a"]GlowingEffect: colours along the lit arc, tail to head (glowColor sets just the first).
spread90GlowingEffect: width of the lit arc in degrees.
proximity72GlowingEffect: how far outside the card the pointer still lights it, in px.
intensity1GlowingEffect: rim thickness and brightness (0.5 to 2).
blur18GlowingEffect: blur of the bloom outside the rim, in px.
borderRadius"22px"GlowingEffect: corner radius.
disabledfalseGlowingEffect: turns the light off.
LitBorder.children—Lit Border: the element to wrap. A card, an input, a button, anything.
LitBorder.radius24Lit Border: outer corner radius in px. Use 999 for pills.
LitBorder.width1.5Lit Border: border thickness in px.
LitBorder.colors["0,113,227", "94,92,230", "48,209,88"]Lit Border: three RGB triplets for the lit arc, head, middle and tail.
LitBorder.className—Lit Border: extra classes for the outer frame, for example h-full in a grid.
LightGroup.children—Light Group: the elements that share one light, usually several LitBorders.
LightGroup.autoplayfalseLight Group: the light circles the group on its own until the first real pointer arrives. Never runs under reduced motion.
LightGroup.className—Light Group: extra classes for the wrapper.

Add it to your project

  1. 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 creates components.json and the cn() helper in src/lib/utils.ts:

    npx shadcn@latest init -d

    Starting from nothing? The Quick Start walks through the whole thing.

  2. 2

    Connect the registry

    Run this once per project. It writes the Nexus UI entry into components.json for 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.

  1. 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
  2. 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.tsx
    GlowingCardsLayout.tsx
    GlowingEffect.tsx
    index.ts
    lit-border.tsx
  3. 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:

  4. 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.