Skip to content
IndexRequest a UIAboutContact

Outline to Fill Text Sweep

Outlined headline letters that fill with solid colour in a sweep, with direction choices and hover or focus triggers.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI IMAGE OR VIDEO TOOL
Typographic poster of the word FILL set in a very heavy sans-serif, the letters hollow with a thin black outline on the right half and solid black filled on the left half with a crisp vertical edge between them, as if a fill is sweeping from left to right, off-white background, small arrow icon at the edge. Variants: sweeping from the bottom upward and radial from the centre. Negative: gradients, shadows, clutter, text errors. Reduced motion: solid fill only.

About this pattern

Definition

An outlined word has a hollow, graphic feel. Sweeping a solid fill through it turns that outline into a solid shape and gives hover and scroll moments a strong accent. It is built with transparent text, a text stroke and a clipped background whose edge moves.

When to use it

  • Use a heavy font so the outline has room; set color to transparent and -webkit-text-stroke to about 1.5px.
  • Paint a hard-edged linear gradient on the background and clip it to the text.
  • Move the stop with a custom property or a background-size transition.
  • Trigger on hover and on keyboard focus.

What the controls do

  • Direction buttons; hover, focus or press Play to run the sweep.

Motion & timing

  • The sweep takes 700ms.
  • Reduced motion: the text fills instantly.

Tips & variations

  • Keep a plain solid fallback colour for browsers that do not support text stroke or background clip.
  • Outline-only text can have low contrast; make the final state solid and strong.

Code of this live preview

HTML
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Direction"><button data-p="0" aria-pressed="true">Left to right</button><button data-p="1" aria-pressed="false">Bottom to top</button><button data-p="2" aria-pressed="false">From centre</button></div><button class="wd" id="wd" type="button" aria-label="FILL"><span id="wt">FILL</span></button><button class="mini" id="pl" type="button">Play</button></div>

Related patterns

Text Reveal Styles

↗
Text Reveal StylesKinetic Typography

Animated Underline Link

↗
Animated Underline LinkMicro Interactions

Kinetic Typography

↗
Kinetic TypographyKinetic Typography