Receipt — the read marker travels
Variant: Read marker
One small avatar says how far the other person has read, and it moves rather than re-rendering. It lives in a gutter beside the thread, so a new message arriving below never shoves it, and when they read the next message it glides down exactly one row in 350ms on ease-in-out — it is already on screen going from A to B, and the soft landing keeps it from looking like it bounced off the bubble. Every outgoing row is a fixed height so each hop is a whole number of pitches and never depends on what the text wraps to. It never walks backwards: a marker sliding up the thread would be claiming someone un-read something, so when the thread resets it fades out and comes back in place. One marker per reader, not one tick per message, is the whole design: the eye follows a single object down the conversation and "read up to here" becomes a place. Reach for it in chat, comment threads and shared docs with a handful of readers; past four or five faces, collapse them into a count.
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>Receipt — the read marker travels</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)
);
/* Clock — 7s, so 1% is 70ms. Second message sent at 4%, read at 18%;
third sent at 34%, read at 58%; the thread clears from 88%. */
--cycle: 7s;
--t: calc(var(--cycle) / var(--speed));
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
--_muted: color-mix(in srgb, var(--slate) 54%, transparent);
--_in: color-mix(in srgb, var(--oat) 45%, var(--paper));
--_face: color-mix(in srgb, var(--olive) 28%, var(--paper));
--_row: 30px;
--_gap: 6px;
}
* {
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(320px, 90vw);
background: var(--paper);
border: 1px solid var(--oat);
border-radius: calc(14px * var(--round));
overflow: hidden;
}
.head {
display: flex;
justify-content: space-between;
padding: 10px 14px;
font-size: 11.5px;
color: var(--_muted);
border-bottom: 1px solid var(--oat);
}
.head b {
color: var(--slate);
font-weight: 600;
}
.thread {
display: grid;
gap: 10px;
padding: clamp(12px, 4vw, 16px) 14px;
}
.in,
.out {
max-width: 80%;
padding: 7px 11px;
font-size: 13px;
line-height: 1.35;
border-radius: calc(14px * var(--round));
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.in {
justify-self: start;
background: var(--_in);
}
/* Every outgoing row is the same fixed height, so the marker's hops are
exact multiples of one pitch and never depend on what the text wraps to. */
.outs {
position: relative;
display: grid;
gap: var(--_gap);
padding-right: 26px;
}
.out {
justify-self: end;
height: var(--_row);
padding-block: 0;
line-height: var(--_row);
color: var(--paper);
background: var(--clay-d);
transform-origin: 100% 100%;
}
.o2,
.o3 {
opacity: 0;
animation-duration: var(--t);
animation-iteration-count: infinite;
}
.o2 {
animation-name: o2;
}
.o3 {
animation-name: o3;
}
@keyframes o2 {
0%,
4% {
opacity: 0;
transform: translateY(6px) scale(0.97);
animation-timing-function: var(--ease-out);
}
7.43%,
88% {
opacity: 1;
transform: none;
animation-timing-function: var(--ease-out);
}
90.57%,
100% {
opacity: 0;
transform: none;
}
}
@keyframes o3 {
0%,
34% {
opacity: 0;
transform: translateY(6px) scale(0.97);
animation-timing-function: var(--ease-out);
}
37.43%,
88% {
opacity: 1;
transform: none;
animation-timing-function: var(--ease-out);
}
90.57%,
100% {
opacity: 0;
transform: none;
}
}
/* One marker, not one per message. It lives in its own gutter so a new
message arriving below never shoves it, and it travels rather than
re-appearing, so the eye follows a single object down the thread and
"read up to here" stays a place, not a flicker. */
.face {
position: absolute;
top: calc(var(--_row) - 18px);
right: 0;
display: grid;
place-items: center;
width: 18px;
height: 18px;
border-radius: 50%;
font-size: 11px;
font-weight: 600;
color: var(--slate);
background: var(--_face);
animation: hop var(--t) infinite;
}
/* Each hop is one pitch in 350ms on ease-in-out: the marker is already
on screen going from A to B, and the soft landing is what lets it
arrive without looking like it bounced off the bubble. */
@keyframes hop {
0%,
18% {
opacity: 1;
transform: translateY(0);
animation-timing-function: var(--ease-in-out);
}
23%,
58% {
opacity: 1;
transform: translateY(calc(var(--_row) + var(--_gap)));
animation-timing-function: var(--ease-in-out);
}
63%,
88% {
opacity: 1;
transform: translateY(calc(2 * (var(--_row) + var(--_gap))));
animation-timing-function: var(--ease-out);
}
/* It never walks backwards. A read marker going up the thread would
be claiming someone un-read something, so the reset is a fade. */
91%,
92% {
opacity: 0;
transform: translateY(calc(2 * (var(--_row) + var(--_gap))));
}
92.1% {
opacity: 0;
transform: translateY(0);
animation-timing-function: var(--ease-out);
}
97%,
100% {
opacity: 1;
transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
/* The marker stops travelling: it fades out of one row and into the
next, so "read up to here" still moves down the thread but nothing
slides. Bubbles fade in place. Every timeline stretches by 1.5. */
.o2 {
animation-name: o2-still;
}
.o3 {
animation-name: o3-still;
}
@keyframes o2-still {
0%,
4% {
opacity: 0;
}
7.43%,
88% {
opacity: 1;
}
90.57%,
100% {
opacity: 0;
}
}
@keyframes o3-still {
0%,
34% {
opacity: 0;
}
37.43%,
88% {
opacity: 1;
}
90.57%,
100% {
opacity: 0;
}
}
.face {
animation-name: hop-still;
}
@keyframes hop-still {
0%,
18% {
opacity: 1;
transform: translateY(0);
}
20% {
opacity: 0;
transform: translateY(0);
}
20.1% {
opacity: 0;
transform: translateY(calc(var(--_row) + var(--_gap)));
}
23%,
58% {
opacity: 1;
transform: translateY(calc(var(--_row) + var(--_gap)));
}
60% {
opacity: 0;
transform: translateY(calc(var(--_row) + var(--_gap)));
}
60.1% {
opacity: 0;
transform: translateY(calc(2 * (var(--_row) + var(--_gap))));
}
63%,
88% {
opacity: 1;
transform: translateY(calc(2 * (var(--_row) + var(--_gap))));
}
91%,
92% {
opacity: 0;
transform: translateY(calc(2 * (var(--_row) + var(--_gap))));
}
92.1% {
opacity: 0;
transform: translateY(0);
}
97%,
100% {
opacity: 1;
transform: translateY(0);
}
}
.o2,
.o3,
.face {
animation-duration: calc(var(--t) * 1.5);
}
}
</style>
</head>
<body>
<div
class="card"
role="img"
aria-label="Three sent messages with one small avatar marker beside the last one Maya has read; as each new message arrives and she reads it, the marker glides down one row to sit beside it"
>
<div class="head"><b>Maya Okafor</b><span>Active now</span></div>
<div class="thread">
<div class="in">Can you send the notes?</div>
<div class="outs">
<div class="out">Sure, one sec</div>
<div class="out o2">Notes are in the doc</div>
<div class="out o3">Action items at the end</div>
<span class="face" aria-hidden="true">M</span>
</div>
</div>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.