Highlighter
Underline & Decoration · Animated · pure CSS
A marker highlight sweeps in behind the text like a felt-tip pen. Draws attention to a phrase with a hand-made feel.
How it works
Highlighter is an animated underline & decoration text effect rendered entirely in CSS. It works on a single element — just add the .text-effect class, with no extra HTML.
Controls
Highlighter exposes 3 dedicated controls — Hue, Band Height and Speed — 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
/* Highlighter — made with TEXT-FX · https://text-fx.app
* HTML: just put the class on any element.
* Font: 'Major Mono Display', monospace (load from Google Fonts).
*/
.text-effect {
font-family: 'Major Mono Display', monospace;
font-weight: 400;
letter-spacing: 8px;
text-transform: uppercase;
}
.text-effect {
display: inline;
color: hsl(170 30% 8%);
padding: 0 0.12em;
background-image: linear-gradient(hsl(170 45% 72% / 0.4), hsl(170 45% 72% / 0.4));
background-repeat: no-repeat;
background-position: 0 56%;
background-size: 0% 44%;
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
animation: text-effect-wipe 2.2s ease-out 1 forwards;
}
.text-effect:hover {
animation-name: text-effect-wipe-r;
}
@keyframes text-effect-wipe {
0% { background-size: 0% 44%; }
100% { background-size: 100% 44%; }
}
@keyframes text-effect-wipe-r {
0% { background-size: 0% 44%; }
100% { background-size: 100% 44%; }
}
Pure CSS — just add the .text-effect class to any element.
- Category
- Underline & Decoration
- Type
- Animated
- Browser support
- background-size width animation (all modern browsers)
- Capabilities
- pure