Pointer Holographic

Metallic & Holographic · Static · pure CSS

An iridescent foil whose hue bands tilt and shimmer as you move the cursor, which repositions the oversized gradient. Pointer-reactive holographic.

Pointer Holographic

How it works

Pointer Holographic is a static metallic & holographic text effect rendered entirely in CSS. It reacts to the pointer through CSS custom properties updated by a tiny inline script.

Controls

Pointer Holographic exposes 2 dedicated controls — Base Hue and Tilt Range — on top of the shared type controls (font, weight, letter-spacing and case). Open it in the generator to tune every value live, then copy the updated CSS.

CSS

/* Pointer Holographic — generated with TEXT-FX
 * HTML: needs the small pointer-move JS snippet.
 * Font: 'Space Grotesk', sans-serif (load from Google Fonts).
 */

.text-effect {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0px;
  text-transform: uppercase;
}

.text-effect {
  --mx: 32%;
  --my: 36%;
  background: radial-gradient(circle at var(--mx) var(--my), hsl(0 0% 100% / 0.5) 0%, hsl(0 0% 100% / 0) 22%), linear-gradient(115deg, hsl(301 95% 64%), hsl(356 95% 68%), hsl(71 95% 64%), hsl(151 95% 66%), hsl(241 95% 64%), hsl(301 95% 64%));
  background-size: 100% 100%, 293% 293%;
  background-position: 0% 0%, var(--mx) var(--my);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 10px hsl(71 90% 60% / 0.4));
}

HTML

This effect needs the markup below (per-letter spans, SVG defs, or a data-text attribute).

<style>
.text-effect {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0px;
  text-transform: uppercase;
}

.text-effect {
  --mx: 32%;
  --my: 36%;
  background: radial-gradient(circle at var(--mx) var(--my), hsl(0 0% 100% / 0.5) 0%, hsl(0 0% 100% / 0) 22%), linear-gradient(115deg, hsl(301 95% 64%), hsl(356 95% 68%), hsl(71 95% 64%), hsl(151 95% 66%), hsl(241 95% 64%), hsl(301 95% 64%));
  background-size: 100% 100%, 293% 293%;
  background-position: 0% 0%, var(--mx) var(--my);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 10px hsl(71 90% 60% / 0.4));
}
</style>

<div class="text-effect">Your text</div>

<script>
const fx = document.querySelector('.text-effect');
if (fx) {
  fx.addEventListener('pointermove', (e) => {
    const r = fx.getBoundingClientRect();
    if (!r.width || !r.height) return;
    fx.style.setProperty('--mx', ((e.clientX - r.left) / r.width) * 100 + '%');
    fx.style.setProperty('--my', ((e.clientY - r.top) / r.height) * 100 + '%');
  });
  fx.addEventListener('pointerleave', () => {
    fx.style.removeProperty('--mx');
    fx.style.removeProperty('--my');
  });
}
</script>
Category
Metallic & Holographic
Type
Static
Browser support
background-clip:text iridescent foil with pointer-driven background-position.
Capabilities
pointer

Related Metallic & Holographic effects