Marker

Text

Put [square brackets] round the words to highlight.

Type

Colour

Ground

Ground

Motion

Plays

Checking your unlocks…

About this effect

Marker is for the one word in a sentence that matters: put it in square brackets and a loose, hand-drawn highlighter stroke sweeps in behind it, slightly uneven like a real pen. Mark two words and the second follows in a second colour.

The sentence stays ordinary text. Each marked word gets a small SVG stroke drawn behind it with stroke-dashoffset, so it wraps with the line and works inside paragraphs as well as headings.

The marked words take their own colour exactly where the stroke has reached, so a pale marker can carry dark words: the default is a plain light marker, and Highlighter is the yellow classic. With deep marker colours, keep the marked text light.

Formats
React, HTML
No dependencies
Built with
SVG and CSS
Default font Instrument Serif
Plays
Loop, In view, On load, Hover
Reduced motion
Respected
Shows the finished frame

Accessibility. The sentence is ordinary text, read as written; the strokes are hidden from screen readers. Under reduced motion the highlights are simply there.

Also known as highlight text, text highlighter, marker underline, hand drawn highlight, emphasis text, highlighted word.

Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.

More highlight