Glare Sweep
Metallic & Holographic · Static · pure CSS
A polished metal fill with a bright specular highlight that slides to wherever your cursor is, like light catching a chrome plaque.
How it works
Glare Sweep 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
Glare Sweep exposes 2 dedicated controls — Tint and Tint Strength — 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
/* Glare Sweep — 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: -2px;
text-transform: none;
}
.text-effect {
--mx: 33%;
--my: 30%;
background: radial-gradient(circle at var(--mx) var(--my), hsl(0 0% 100% / 0.82) 0%, hsl(0 0% 100% / 0) 20%), linear-gradient(180deg, hsl(29 11% 90%) 0%, hsl(29 11% 52%) 46%, hsl(29 11% 72%) 60%, hsl(29 11% 52%) 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
filter: drop-shadow(0 2px 1px hsl(29 30% 6% / 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: -2px;
text-transform: none;
}
.text-effect {
--mx: 33%;
--my: 30%;
background: radial-gradient(circle at var(--mx) var(--my), hsl(0 0% 100% / 0.82) 0%, hsl(0 0% 100% / 0) 20%), linear-gradient(180deg, hsl(29 11% 90%) 0%, hsl(29 11% 52%) 46%, hsl(29 11% 72%) 60%, hsl(29 11% 52%) 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
filter: drop-shadow(0 2px 1px hsl(29 30% 6% / 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 metal ramp + a pointer-tracked specular hotspot.
- Capabilities
- pointer