Redact — marker bars
Variant: Marker bars
Redaction you can watch being decided. Four sensitive phrases — a name, a company, an amount, a date — are barred in reading order, 360ms apart: slow enough that each reads as a choice, quick enough that nobody waits. Each bar draws left to right in 210ms on an ease-out, the way a hand drags a marker, and lands firmly on the far edge; the glyphs beneath drop out as it lands, and every bar keeps the width of what it hides, so the paragraph never reflows. The "Safe to share" verdict waits a beat past the last bar. Pair it with a real text replacement in export, share and compliance flows — a bar over live text still copies.
The source
A complete HTML document. Paste it into an empty .html file and it plays — no stylesheet, script, font, or image to fetch.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Redact — marker bars</title>
<style>
:root {
/* Neutrals — fixed, never remixed. */
--ivory: #faf9f5;
--paper: #ffffff;
--oat: #e3dacc;
--slate: #141413;
/* Knobs — the remix API. A knob exists iff declared here and used below. */
--hue: 38.8;
--lift: 0;
--chroma: 1;
--round: 1;
--speed: 1;
/* Accents — derived from the knobs with the family's offsets baked in,
so one hue roll moves them together. Defaults reproduce the original hex. */
--clay: oklch(calc(0.6724 + var(--lift)) calc(0.1308 * var(--chroma)) var(--hue));
--clay-d: oklch(calc(0.5797 + var(--lift)) calc(0.127 * var(--chroma)) var(--hue));
--olive: oklch(
calc(0.6118 + var(--lift)) calc(0.0713 * var(--chroma)) calc(var(--hue) + 88.3)
);
--rust: oklch(
calc(0.5408 + var(--lift)) calc(0.1357 * var(--chroma)) calc(var(--hue) - 10.3)
);
--_muted: color-mix(in srgb, var(--slate) 52%, transparent);
--_olive-wash: color-mix(in srgb, var(--olive) 18%, var(--paper));
/* Clock — 6s: 1% is 60ms. Four bars, 360ms apart: slow enough that each
one reads as a decision, fast enough that it never feels like waiting. */
--cycle: 6s;
--t: calc(var(--cycle) / var(--speed));
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
min-height: 100vh;
display: grid;
place-items: center;
background: var(--ivory);
font-family:
system-ui,
-apple-system,
'Segoe UI',
Roboto,
sans-serif;
color: var(--slate);
}
.card {
width: min(300px, calc(100vw - 32px));
padding: 14px 16px 15px;
display: grid;
gap: 10px;
border-radius: calc(12px * var(--round));
background: var(--paper);
border: 1px solid var(--oat);
animation: card var(--t) linear infinite;
}
/* The reset hides in a dark window at the wrap. */
@keyframes card {
0% {
opacity: 0;
}
2.5% {
opacity: 1;
}
95.5% {
opacity: 1;
animation-timing-function: var(--ease-out);
}
100% {
opacity: 0;
}
}
.head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.k {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--_muted);
}
.memo {
font-size: clamp(13.5px, 4.2vw, 15px);
line-height: 1.6;
text-wrap: pretty;
}
/* Each redaction holds its own width, so the paragraph never reflows
and the shape of what was removed stays honest. */
.r {
position: relative;
white-space: nowrap;
animation: ink-1 var(--t) linear infinite;
}
.r::after {
content: '';
position: absolute;
inset: 1px -1px 0;
border-radius: calc(2px * var(--round));
background: var(--slate);
transform: scaleX(0);
transform-origin: left;
animation: bar-1 var(--t) linear infinite;
}
.r:nth-of-type(1) {
animation-name: ink-1;
}
.r:nth-of-type(1)::after {
animation-name: bar-1;
}
.r:nth-of-type(2) {
animation-name: ink-2;
}
.r:nth-of-type(2)::after {
animation-name: bar-2;
}
.r:nth-of-type(3) {
animation-name: ink-3;
}
.r:nth-of-type(3)::after {
animation-name: bar-3;
}
.r:nth-of-type(4) {
animation-name: ink-4;
}
.r:nth-of-type(4)::after {
animation-name: bar-4;
}
/* Left to right, the way a hand drags a marker; ease-out so it lands
firmly on the far edge rather than sliding off it. */
@keyframes bar-1 {
0%,
14% {
transform: scaleX(0);
animation-timing-function: var(--ease-out);
}
17.5%,
100% {
transform: scaleX(1);
}
}
@keyframes ink-1 {
0%,
17.5% {
color: var(--slate);
}
17.51%,
100% {
color: transparent;
}
}
@keyframes bar-2 {
0%,
20% {
transform: scaleX(0);
animation-timing-function: var(--ease-out);
}
23.5%,
100% {
transform: scaleX(1);
}
}
@keyframes ink-2 {
0%,
23.5% {
color: var(--slate);
}
23.509999999999998%,
100% {
color: transparent;
}
}
@keyframes bar-3 {
0%,
26% {
transform: scaleX(0);
animation-timing-function: var(--ease-out);
}
29.5%,
100% {
transform: scaleX(1);
}
}
@keyframes ink-3 {
0%,
29.5% {
color: var(--slate);
}
29.509999999999998%,
100% {
color: transparent;
}
}
@keyframes bar-4 {
0%,
32% {
transform: scaleX(0);
animation-timing-function: var(--ease-out);
}
35.5%,
100% {
transform: scaleX(1);
}
}
@keyframes ink-4 {
0%,
35.5% {
color: var(--slate);
}
35.51%,
100% {
color: transparent;
}
}
/* The glyphs under each bar drop out as it lands, so nothing ghosts past
an anti-aliased edge. In a real export, replace the text itself: a bar
over live text can still be selected and copied. */
.pill {
display: grid;
font-size: 11px;
font-weight: 600;
flex: none;
}
.pill span {
grid-area: 1 / 1;
justify-self: end;
padding: 2px 8px;
border-radius: 999px;
white-space: nowrap;
}
.p-rev {
background: var(--ivory);
color: var(--_muted);
border: 1px solid var(--oat);
animation: p-out var(--t) linear infinite;
}
.p-ok {
background: var(--_olive-wash);
color: var(--olive);
border: 1px solid transparent;
animation: p-in var(--t) linear infinite;
}
/* The verdict waits a beat past the last bar: it describes a finished
document, not one still being marked. */
@keyframes p-out {
0%,
40% {
opacity: 1;
animation-timing-function: var(--ease-out);
}
41.5%,
100% {
opacity: 0;
}
}
/* Out, then in — never two labels at half opacity on top of each other. */
@keyframes p-in {
0%,
41.5% {
opacity: 0;
transform: scale(0.96);
animation-timing-function: var(--ease-out);
}
44%,
100% {
opacity: 1;
transform: scale(1);
}
}
.foot {
display: grid;
border-top: 1px solid var(--oat);
padding-top: 8px;
font-size: 12px;
color: var(--_muted);
}
.foot span {
grid-area: 1 / 1;
}
.f-a {
animation: p-out var(--t) linear infinite;
}
.f-b {
animation: f-in var(--t) linear infinite;
}
@keyframes f-in {
0%,
41.5% {
opacity: 0;
animation-timing-function: var(--ease-out);
}
44%,
100% {
opacity: 1;
}
}
@media (prefers-reduced-motion: reduce) {
/* One shared 1.6x clock keeps every part in phase. */
.card,
.card *,
.card *::before,
.card *::after {
animation-duration: calc(var(--t) * 1.6);
}
/* Same order, same gaps: each bar fades in whole instead of drawing. */
.r::after {
transform: none;
}
.p-ok {
transform: none;
animation-name: f-in;
}
.r:nth-of-type(1)::after {
animation-name: rm-1;
}
.r:nth-of-type(2)::after {
animation-name: rm-2;
}
.r:nth-of-type(3)::after {
animation-name: rm-3;
}
.r:nth-of-type(4)::after {
animation-name: rm-4;
}
@keyframes rm-1 {
0%,
14% {
opacity: 0;
}
16.5%,
100% {
opacity: 1;
}
}
@keyframes rm-2 {
0%,
20% {
opacity: 0;
}
22.5%,
100% {
opacity: 1;
}
}
@keyframes rm-3 {
0%,
26% {
opacity: 0;
}
28.5%,
100% {
opacity: 1;
}
}
@keyframes rm-4 {
0%,
32% {
opacity: 0;
}
34.5%,
100% {
opacity: 1;
}
}
}
</style>
</head>
<body>
<div
class="card"
role="img"
aria-label="A short memo where four sensitive phrases — a name, a company, an amount and a date — are covered by black bars one after another, the words under them removed, and a badge changes from Reviewing to Safe to share"
>
<div class="head">
<span class="k">External memo</span>
<span class="pill"
><span class="p-rev">Reviewing</span><span class="p-ok">Safe to share</span></span
>
</div>
<p class="memo">
Approved by <span class="r">Dana Whitfield</span>: the freight contract goes to
<span class="r">Northwind Ltd</span> at <span class="r">$1.2M</span>, signed
<span class="r">Oct 4</span>.
</p>
<p class="foot">
<span class="f-a">4 phrases flagged · names, amounts, dates</span>
<span class="f-b">4 removed · ready to export</span>
</p>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.