End feel — hard
Variant: Hard
Physiotherapists judge a joint by what the end of its range feels like under a little extra push — overpressure — and this family borrows their four names for the four things a slider can say at its limit. Hard is bone on bone. The thumb meets the stop at speed, contact is held on screen for a couple of frames so it is always drawn, and the recoil is a hair, not a bounce. The point is what happens next: the pointer is not a body, so it leaves the stop at the speed it arrived, drifts past, eases off and leans in again, and the thumb answers neither push. That widening gap between hand and thumb is the wall, more than the stop is. Rust marks the stop, the thumb ring and the readout’s border only while the push lasts. Reach for it when the limit is absolute — volume at 100, a quantity capped by stock — and pushing harder should visibly buy nothing.
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>End feel — hard</title>
<style>
/* Three registered numbers: where the thumb is (--_p), where the hand
is (--_h), and what the readout says (--_v). Thumb and hand share
keyframes until contact, so they are pixel-identical while gripped
and the frame they part is the frame the stop is felt. */
@property --_p {
syntax: '<number>';
inherits: true;
initial-value: 20;
}
@property --_h {
syntax: '<number>';
inherits: true;
initial-value: 20;
}
@property --_v {
syntax: '<integer>';
inherits: true;
initial-value: 20;
}
: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);
--_rail: color-mix(in srgb, var(--oat) 60%, transparent);
--_stop: color-mix(in srgb, var(--slate) 40%, transparent);
/* Clock — 4.4s: drag, contact, overpressure, a held push, release. */
--cycle: 4.4s;
--t: calc(var(--cycle) / var(--speed));
--_w: min(232px, 70vw);
}
* {
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);
}
.rig {
display: grid;
gap: 14px;
justify-items: center;
animation: rig-cycle var(--t) linear infinite;
}
.cap,
.foot {
font-size: 11px;
letter-spacing: 0.04em;
color: var(--_muted);
}
.foot {
opacity: 0;
animation: foot-in var(--t) linear infinite;
}
.box {
position: relative;
width: var(--_w);
height: 78px;
animation:
thumb var(--t) infinite,
hand var(--t) infinite;
}
.rail {
position: absolute;
left: 0;
right: 0;
top: 45px;
height: 4px;
border-radius: 2px;
background: var(--_rail);
overflow: hidden;
}
.fill {
position: absolute;
inset: 0;
background: var(--clay);
transform-origin: left center;
transform: scaleX(calc(var(--_p) / 100));
}
/* The stop sits exactly one thumb-radius past the rail's end, so the
thumb's edge meets it on the frame the value reaches 100. */
.stop {
position: absolute;
left: calc(var(--_w) + 10px);
top: 37px;
width: 3px;
height: 20px;
border-radius: 1.5px;
background: var(--_stop);
animation: latch-bg var(--t) infinite;
}
.carrier {
position: absolute;
left: 0;
top: 34px;
width: 0;
height: 26px;
transform: translateX(calc(var(--_w) * var(--_p) / 100));
}
.thumb {
position: absolute;
left: -10px;
top: 3px;
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--paper);
border: 1.5px solid var(--oat);
box-shadow: 0 2px 6px color-mix(in srgb, var(--slate) 16%, transparent);
animation: latch-border var(--t) infinite;
}
.chip {
position: absolute;
left: 0;
top: -32px;
transform: translateX(-50%);
padding: 2px 7px;
border-radius: calc(7px * var(--round));
background: var(--paper);
border: 1px solid var(--oat);
font-size: 12px;
font-weight: 600;
font-variant-numeric: tabular-nums;
white-space: nowrap;
animation: latch-border var(--t) infinite;
}
.chip::before {
counter-reset: v var(--_v);
content: counter(v);
}
.ghost {
position: absolute;
left: 0;
top: 0;
transform: translate(calc(var(--_w) * var(--_h) / 100), 47px);
}
.lift {
position: relative;
display: block;
width: 14px;
height: 18px;
opacity: 0;
animation: lift var(--t) infinite;
}
.arrow {
display: block;
width: 100%;
height: 100%;
fill: var(--slate);
stroke: var(--ivory);
stroke-width: 1.4;
stroke-linejoin: round;
}
.tip {
position: absolute;
left: -9px;
top: -9px;
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--clay-d);
opacity: 0;
transform: scale(0.5);
animation: grip var(--t) infinite;
}
/* The arrival accelerates into the stop — the hand had no reason to
slow, so the wall is what ends the trip. Contact is held for a frame
or two so it is always drawn, then a 66ms recoil of about 3px and a
quick return under the hand's pressure. The readout holds 100
through the recoil: the value never left. */
@keyframes thumb {
0%,
8% {
--_p: 20;
--_v: 20;
animation-timing-function: cubic-bezier(0.4, 0, 0.85, 0.75);
}
20%,
20.5% {
--_p: 100;
--_v: 100;
animation-timing-function: cubic-bezier(0.333, 0.667, 0.667, 1);
}
22% {
--_p: 98.6;
--_v: 100;
animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
}
23%,
97% {
--_p: 100;
--_v: 100;
}
98%,
100% {
--_p: 20;
--_v: 20;
}
}
/* Overpressure: the cursor is not a body, nothing stops it, so it
leaves the stop at its arrival speed (the coast's opening slope is
matched to it) and drifts ten units past. Then a second push — ease
off four units, lean in again — and the thumb answers neither. */
@keyframes hand {
0%,
8% {
--_h: 20;
animation-timing-function: cubic-bezier(0.4, 0, 0.85, 0.75);
}
20% {
--_h: 100;
animation-timing-function: cubic-bezier(0.1, 0.78, 0.3, 1);
}
27%,
32% {
--_h: 110;
animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
}
35% {
--_h: 106;
animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
}
38%,
97% {
--_h: 110;
}
98%,
100% {
--_h: 20;
}
}
@keyframes lift {
0%,
3% {
opacity: 0;
transform: translate(18px, 40px);
animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
8%,
46% {
opacity: 1;
transform: translate(0, 0);
animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
53%,
100% {
opacity: 0;
transform: translate(2px, 26px);
}
}
/* The grip disc is thumb-sized only while it holds the thumb. The
frame they part it shrinks to a fingertip, so the pointer out past
the limit never reads as a second thumb. */
@keyframes grip {
0%,
7% {
opacity: 0;
transform: scale(0.5);
animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
8%,
20% {
opacity: 0.4;
transform: scale(1);
animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
21.5%,
45.5% {
opacity: 0.4;
transform: scale(0.45);
animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
47.5%,
100% {
opacity: 0;
transform: scale(0.5);
}
}
/* Rust latches on the frame of contact and stays latched for as long
as the hand presses — a wall is reported while it is being leaned
on, not just when it is hit. */
@keyframes latch-bg {
0%,
19.9% {
background: var(--_stop);
}
20%,
46% {
background: var(--rust);
}
49%,
100% {
background: var(--_stop);
}
}
@keyframes latch-border {
0%,
19.9% {
border-color: var(--oat);
}
20%,
46% {
border-color: var(--rust);
}
49%,
100% {
border-color: var(--oat);
}
}
@keyframes foot-in {
0%,
48% {
opacity: 0;
animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
52%,
88% {
opacity: 1;
}
92%,
100% {
opacity: 0;
}
}
@keyframes rig-cycle {
0% {
opacity: 0;
}
3%,
90% {
opacity: 1;
}
95%,
100% {
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
/* The travel goes; the wall stays. The thumb is parked against the
stop and the latch breathes, so the card still says "pressed
against something that will not give". */
.rig,
.box,
.lift {
animation: none;
}
.box {
--_p: 100;
--_v: 100;
}
.foot {
animation: none;
opacity: 1;
}
.stop {
animation: latch-rest calc(var(--t) * 1.6) ease infinite;
}
.thumb,
.chip {
animation: none;
}
@keyframes latch-rest {
0%,
10% {
background: var(--_stop);
}
40%,
60% {
background: var(--rust);
}
90%,
100% {
background: var(--_stop);
}
}
}
</style>
</head>
<body>
<div
class="rig"
role="img"
aria-label="A slider dragged to its maximum: the thumb meets the end stop at full speed, recoils a hair and holds, while the pointer slides on past it and buys nothing"
>
<p class="cap">end feel · hard</p>
<div class="box">
<div class="rail"><i class="fill"></i></div>
<i class="stop"></i>
<div class="carrier">
<span class="chip"></span>
<span class="thumb"></span>
</div>
<span class="ghost">
<span class="lift">
<span class="tip"></span>
<svg class="arrow" viewBox="0 0 14 18">
<path d="M1 1 L1 14.8 L4.5 11.6 L6.7 16.6 L9.3 15.4 L7.1 10.5 L11.8 10.3 Z" />
</svg>
</span>
</span>
</div>
<p class="foot">pushed past 100 — it gave nothing</p>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.