Skip to content
IndexRequest a UIAboutContact

Highlighter Marker Sweep

Key words in a sentence are highlighted one after another by a marker stroke that sweeps across, in four colours.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI IMAGE OR VIDEO TOOL
Close-up of a printed paragraph on cream paper with three key phrases highlighted by a yellow marker stroke, each highlight slightly uneven at the ends like real pen, the black text fully legible through the translucent colour, soft side light, shallow depth of field, tactile and editorial. Variants: mint, pink and blue highlighter. Negative: opaque blocks hiding the text, neon colours, text errors, hands. Reduced motion: static image.

About this pattern

Definition

A highlighter sweep draws attention to the words that matter. A coloured band grows behind each key phrase from left to right, as if marked with a pen, and the staggered timing guides the eye through the sentence in the intended order.

When to use it

  • Highlight two or three phrases at most; more than that and nothing stands out.
  • Sweep left to right at about 500ms per phrase with a 250ms gap.
  • Keep text contrast high against the highlight; use a light, slightly transparent colour.

What the controls do

  • Four colour buttons and a Replay button.

Motion & timing

  • Each highlight sweeps in 500ms with a stagger.
  • Reduced motion: the highlights appear at once.

Tips & variations

  • The highlight is decorative, so the meaning must stand without it.
  • Use the mark element so assistive technology knows these words are emphasised.

Code of this live preview

HTML
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Colour"><button data-p="0" aria-pressed="true">Yellow</button><button data-p="1" aria-pressed="false">Mint</button><button data-p="2" aria-pressed="false">Pink</button><button data-p="3" aria-pressed="false">Blue</button></div><p class="tx" id="tx">Good design is <mark>not just how it looks</mark> but <mark>how it works</mark>, and the best interfaces make <mark>the right action obvious</mark>.</p><button class="mini" id="rp" type="button">Replay</button></div>

Related patterns

Text Reveal Styles

↗
Text Reveal StylesKinetic Typography

Typewriter Cycling Words

↗
Typewriter Cycling WordsKinetic Typography

Animated Underline Link

↗
Animated Underline LinkMicro Interactions