Redact

The plan is classified

Text

Put the words to black out in [brackets].

Type

Colour

Ground

Ground

Motion

Plays

Checking your unlocks…

About this effect

Redact goes over your sentence with a black felt marker and strikes out the words you put in brackets, one after another, each stroke drawn from left to right with the marker's rough edges and the faint streaks a nib leaves. It holds there, the words gone as on a censored document. Then the ink lifts away and the words come back, sitting in a soft highlight as if declassified, before the marker goes over them again.

Mark the words with [square brackets]; a mark that runs onto a second line gets a stroke on each line. The heading stays real text for screen readers and search, the marked words included. Rough sets how ragged the marker's edges are.

Formats
React, HTML
No dependencies
Built with
CSS and a little JS
Default font JetBrains Mono
Plays
Loop, In view, Hover, On load
Reduced motion
Respected
Shows the finished frame

Accessibility. One real heading, read once, with every word in it, the redacted ones included; the marker strokes and highlights are hidden from screen readers. Under reduced motion the marked words rest blacked out.

Also known as redacted text effect, blackout text, censored text animation, classified text, marker bar text, declassified effect.

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

More colour and marks