Interactive grid

Also called hover grid background, grid trail effect, or Interactive Grid Pattern

A background grid of squares where the cell under the pointer lights up and fades out after the pointer moves on, leaving a short glowing trail.

What is Interactive grid?

An interactive grid turns a plain grid background into something that answers the pointer. Each square is its own element, or a cell drawn on a canvas. The cell under the pointer lights up at once, and when the pointer moves on, that cell fades back out over half a second or so. A quick sweep leaves a trail of fading squares behind it.

Use it behind a hero headline, an empty state, or a sign-up section, often on sites for developer and design tools, where a little play rewards people for moving the mouse. Keep the lit color faint, fade the grid toward the edges with a mask, and make sure the text on top stays readable over lit cells.

Listen for pointermove once, on the container, and work out the cell from the coordinates, so hundreds of squares never need their own hover listeners. Set the lit cell’s opacity directly and let a CSS transition handle the fade, so moving the mouse never re-renders the grid. Touch screens get the still grid, and people who prefer reduced motion can get cells that switch off without a trail.

Often confused with

Grid background
A grid background is a still pattern of lines or dots. An interactive grid lights up the cells under the pointer and lets them fade.
Flickering grid
A flickering grid twinkles at random on its own, as an ambient loop. An interactive grid lights cells only where the pointer goes.
All terms

Grid background

A decorative background of thin grid lines, dots, stripes, or hexagons, often faded toward the edges, used behind hero sections and product shots.

Spotlight card

A card whose border and background light up with a soft radial glow that follows the mouse pointer, often across a whole grid of cards.

Custom cursor

A designed shape, such as a dot or a ring, that replaces or trails the mouse pointer and reacts to what it passes over.

Hover effect

A visual change, such as a lift, glow, or zoom, that happens when the mouse pointer moves over an element to show it can be clicked.

Build it with Layerwise

Describe your app, watch it run in a live preview, and publish it with a database, storage, and sign-in built in.