Back to the library

End feel — empty

Variant: Empty

The clinician’s empty end feel is motion stopped before anything resists — the patient said stop, not the joint. Here that is a policy cap: a plan limit, a permission, a role. The range past 60 is drawn, dotted, because it exists for someone. The thumb stays glued to the hand until almost the line, then is let go on an ease-out whose opening speed matches the drag — no hitch, no impact, no recoil, no colour, because nothing was hit — and the pointer carries on to 90, pushes again, and moves nothing. The reason fades in under the thumb a beat after it stops, never before: the sentence explains the limit rather than causing it. Reach for it whenever a bound is a rule, so it is never mistaken for the edge of the control.

physicscontrolgestureaccessloop

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 — empty</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 55, so they are pixel-identical while gripped and
         the frame they part is the frame the rule takes over. */
      @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);
        --_dot: color-mix(in srgb, var(--slate) 22%, transparent);

        /* Clock — 4.4s: drag, a stop with nothing in it, 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: linear-gradient(90deg, var(--_rail) 0 60%, transparent 60%);
        overflow: hidden;
      }

      /* The range past the cap still exists and is drawn — dotted, because
         it belongs to someone, just not to you. */
      .beyond {
        position: absolute;
        left: calc(var(--_w) * 0.6);
        right: 0;
        top: 46px;
        height: 2px;
        background: repeating-linear-gradient(90deg, var(--_dot) 0 3px, transparent 3px 7px);
      }

      .fill {
        position: absolute;
        inset: 0;
        background: var(--clay);
        transform-origin: left center;
        transform: scaleX(calc(var(--_p) / 100));
      }

      /* No wall: the limit is a sentence, set under the thumb where it
         stopped, and it arrives after the stop rather than causing it. */
      .why {
        position: absolute;
        left: calc(var(--_w) * 0.6);
        top: 62px;
        transform: translateX(-50%);
        font-size: 11px;
        letter-spacing: 0.02em;
        color: var(--clay-d);
        white-space: nowrap;
        opacity: 0;
        animation: why-in 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);
      }

      .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;
      }

      .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;
      }

      /* Thumb and hand leave 55 at the same speed (about 6 units per 44ms);
         the thumb's branch is a 5-unit ease-out whose opening slope matches
         it, so it stays glued to the hand until essentially the line and is
         let go with no struggle — no hitch, no impact, no recoil. The hand
         carries on to 90 and pushes again; the thumb answers nothing. It is
         stopped by a decision, so it arrives the way decided arrivals do. */
      @keyframes thumb {
        0%,
        8% {
          --_p: 20;
          --_v: 20;
          animation-timing-function: cubic-bezier(0.5, 0, 0.74, 0.6);
        }
        17% {
          --_p: 55;
          --_v: 55;
          animation-timing-function: cubic-bezier(0.17, 0.61, 0.3, 1);
        }
        20%,
        97% {
          --_p: 60;
          --_v: 60;
        }
        98%,
        100% {
          --_p: 20;
          --_v: 20;
        }
      }

      @keyframes hand {
        0%,
        8% {
          --_h: 20;
          animation-timing-function: cubic-bezier(0.5, 0, 0.74, 0.6);
        }
        17% {
          --_h: 55;
          animation-timing-function: cubic-bezier(0.22, 0.3, 0.35, 1);
        }
        25%,
        32% {
          --_h: 90;
          animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
        }
        35% {
          --_h: 84;
          animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
        }
        38%,
        97% {
          --_h: 90;
        }
        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%,
        17% {
          opacity: 0.4;
          transform: scale(1);
          animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
        }
        18.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);
        }
      }

      @keyframes why-in {
        0%,
        25% {
          opacity: 0;
          transform: translate(-50%, -3px);
          animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
        }
        30%,
        88% {
          opacity: 1;
          transform: translate(-50%, 0);
        }
        92%,
        100% {
          opacity: 0;
          transform: translate(-50%, 0);
        }
      }

      @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 reason stays. The thumb is parked at the cap
           and the sentence under it breathes, so the card still says
           "stopped on purpose". */
        .rig,
        .box,
        .lift {
          animation: none;
        }

        .box {
          --_p: 60;
          --_v: 60;
        }

        .foot {
          animation: none;
          opacity: 1;
        }

        .why {
          animation: why-rest calc(var(--t) * 1.6) ease infinite;
        }

        @keyframes why-rest {
          0%,
          10% {
            opacity: 0.55;
          }
          40%,
          60% {
            opacity: 1;
          }
          90%,
          100% {
            opacity: 0.55;
          }
        }
      }
    </style>
  </head>
  <body>
    <div
      class="rig"
      role="img"
      aria-label="A slider dragged toward a range that visibly continues: the thumb decelerates to a halt at 60 with nothing there to hit, the pointer carries on to 90, and a note explains the limit is the plan, not the control"
    >
      <p class="cap">end feel · empty</p>
      <div class="box">
        <div class="rail"><i class="fill"></i></div>
        <i class="beyond"></i>
        <span class="why">plan max</span>
        <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">stopped short at 60 — nothing hit</p>
    </div>
  </body>
</html>

The variant family

Same idea, one axis moved. Compare them side by side before you commit.