Free · MIT licence · No dependencies

Glass Grid Glow Free React component

A grid of frosted glass tiles with a glowing orb trapped behind them. The orb chases your cursor on a soft spring, stretching as it speeds up, and every tile it passes lights up. With no cursor around, it drifts on its own.

  • React
  • CSS
  • Cursor
  • Glass
  • Physics
Glass Grid Glow

Get the code

Install in one linenpx shadcn@latest add https://alphenex.com/r/glass-grid-glow.json

Works with any React project through the shadcn CLI. Prefer to paste it yourself? Copy the two files below into components/alphenex/. No Tailwind or animation library needed.

import GlassGridGlow from '@/components/alphenex/glass-grid-glow';

<GlassGridGlow />

How the glass grid glow works

The tiles are a plain CSS grid with backdrop-filter, so whatever moves behind them gets frosted. The orb is a blurred radial gradient sitting under the tiles.

A spring moves the orb toward the cursor every frame, so it lags and overshoots a little like a real object. Its speed stretches it along the direction of travel, which sells the physics.

Each tile gets a --lit value from its distance to the orb, and CSS turns that into a brighter border and a glow. When the cursor leaves, the orb follows a slow looping path so the grid never looks dead.

Frequently asked questions

backdrop-filter works in all current browsers, including Safari, Chrome, Edge and Firefox.

Want motion like this on your website?

We design and build custom websites with motion, 3D and SEO built in. Websites from $500.

More free components

Explore our work