Overview
A fixed-grid cell overlay pulse is an emphasis pattern for a dense matrix where the data layout must stay calm. The grid tracks define the information structure; the pulse is only an emphasis layer. That distinction matters. If the highlighted square grows, the row grows with it. If a pseudo-element grows above the square, the grid keeps its rhythm and the user sees exactly one active state.
When to use it
Use this for heatmaps, availability grids, calendar cells, badge matrices, seat maps, and compact status boards where one cell needs attention without re-sorting the user's mental map. It works best when the highlighted item means current, selected, focused, recently changed, or needs review. Avoid it when many cells need equal emphasis; a constantly pulsing grid turns into noise and makes comparison harder.
How it works
The grid keeps fixed columns, fixed gaps, and stable square cells. The active cell gets position: relative and a local z-index, then ::before and ::after draw the visible effect. The outline ring preset scales a border layer, the inner glow preset breathes inside the square, and the shadow halo preset expands light outside the cell. In every case, the base cell remains the same size; only overlay paint, opacity, and transform change.
Production gotchas
Do not animate grid-template-columns, gap, width, or height on the grid item unless you want neighboring UI to move. The compare demo intentionally shows the bad version by changing the target cell's height; the corrected version keeps the target box fixed and moves the pulse layer instead. Keep the active cell inside a local stacking context so the ring sits above adjacent cells without resorting to global values such as z-index: 9999.
Accessibility
Dense grids should not announce every decorative cell. Give the whole visual a concise accessible name, then expose the meaningful active state through text, aria-currentwhere appropriate, or a focused detail panel. Under prefers-reduced-motion: reduce, stop the loop and keep a static outline or fill so the important cell remains visible without repeated brightness or scale changes.
References