Back to the library

Fly — one cue

Variant: One cue

Three lines — a header travelling 40px, an electric 68px, a drop 96px — taken on two cues, so the card shows the mistake and the fix rather than describing one. Cue 1 gives them one top speed, 120px/s on the family’s S-curve, so each trip lasts travel ÷ speed and they land 0.5s, 0.85s and 1.2s after the go, each stamped with a rust dot: one move read as three. Cue 2 gives them one duration, 1.2s, and the three olive stamps land on the same frame. That is the orchestration rule for any change that moves several things different distances: share the duration and the curve, and let speed be the dependent variable. Each line multiplies its own registered progress number by its own travel, and on cue 2 the three keyframe blocks are identical, so the lines cannot part. The cue light keeps the theatre convention — lit is standby, out is go — holds each standby for a full second, and switches rather than fades, because the operator moves on the frame it goes dark. Reach for it when a filter, a reflow or a panel change moves several elements at once.

physicslayouttransitionloop

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>Fly — one cue</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 — every duration in the document runs off --t. */
        --cycle: 8.4s;
        --t: calc(var(--cycle) / var(--speed));
        --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
        /* Only the reduced-motion breathing uses it. */
        --_breathe: cubic-bezier(0.45, 0, 0.55, 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);
      }

      .stage {
        display: grid;
        gap: 10px;
        width: 240px;
      }

      .cap {
        font-size: 11px;
        text-wrap: balance;
        letter-spacing: 0.04em;
        color: color-mix(in srgb, var(--slate) 52%, transparent);
      }

      .scene {
        position: relative;
        width: 240px;
        height: 132px;
        overflow: hidden;
      }

      /* The masking border across the top of the opening: everything flown
         out is parked behind it, so the loop never needs a blackout. */
      .border {
        position: absolute;
        inset: 0 0 auto;
        height: 16px;
        background: var(--oat);
        z-index: 2;
      }

      .deck {
        position: absolute;
        left: 0;
        right: 0;
        top: 124px;
        height: 2px;
        background: var(--oat);
      }

      /* Progress through the cue for each line, 0 flown out to 1 at trim.
         A line multiplies its own number by its own travel. On cue 1 the
         three numbers run for travel / speed; on cue 2 and both fly-outs
         their keyframes are identical, so the lines cannot part. */
      @property --_p {
        syntax: '<number>';
        inherits: true;
        initial-value: 0;
      }

      .rig {
        position: absolute;
        inset: 0;
      }

      .line {
        position: absolute;
        top: 0;
        width: 64px;
        height: 132px;
      }

      .line:nth-child(1) {
        left: 8px;
        --_d: 40;
        animation: travel-1 var(--t) infinite;
      }

      .line:nth-child(2) {
        left: 88px;
        --_d: 68;
        animation: travel-2 var(--t) infinite;
      }

      .line:nth-child(3) {
        left: 168px;
        --_d: 96;
        animation: travel-3 var(--t) infinite;
      }

      /* Each line hangs so its lowest edge is --_d px below the masking
         border at trim; the set rides up by --_d * (1 - p). */
      .set {
        position: absolute;
        left: 0;
        right: 0;
        bottom: calc(132px - 16px - var(--_d) * 1px);
        transform: translateY(calc((var(--_p) - 1) * var(--_d) * 1px));
      }

      .lift {
        position: absolute;
        bottom: 100%;
        width: 1px;
        height: 220px;
        background: color-mix(in srgb, var(--slate) 26%, transparent);
      }

      .lift.l {
        left: 14px;
      }

      .lift.r {
        left: 49px;
      }

      .batten {
        display: block;
        margin: 0 4px;
        height: 4px;
        border-radius: 999px;
        background: color-mix(in srgb, var(--slate) 72%, transparent);
      }

      .cloth {
        display: block;
        margin: 6px 8px 0;
        background: var(--paper);
        border: 1.5px solid var(--oat);
        border-bottom: 2px solid var(--clay-d);
        border-radius: calc(2px * var(--round)) calc(2px * var(--round)) 0 0;
      }

      .cloth.header {
        height: 14px;
      }

      .cloth.drop {
        height: 40px;
      }

      /* The electric: no cloth, a row of lanterns under the pipe. */
      .lamps {
        display: flex;
        justify-content: space-between;
        margin: 2px 12px 0;
      }

      .lamps i {
        width: 8px;
        height: 9px;
        border-radius: calc(2px * var(--round)) calc(2px * var(--round)) 1px 1px;
        background: var(--clay-d);
      }

      .trim {
        position: absolute;
        left: 0;
        right: 0;
        bottom: calc(132px - 16px - var(--_d) * 1px - 1px);
        height: 1.5px;
        background: repeating-linear-gradient(
          to right,
          color-mix(in srgb, var(--slate) 34%, transparent) 0 3px,
          transparent 3px 6px
        );
      }

      /* A landing is stamped on the frame it happens: rust on cue 1, where
         there are three of them, olive on cue 2, where there is one. */
      .land {
        position: absolute;
        left: 0;
        bottom: calc(132px - 16px - var(--_d) * 1px - 4px);
        width: 7px;
        height: 7px;
        border-radius: 50%;
        opacity: 0;
      }

      .land.a {
        background: var(--rust);
      }

      .land.b {
        background: var(--olive);
        animation: land-b var(--t) infinite;
      }

      .line:nth-child(1) .land.a {
        animation: land-a1 var(--t) infinite;
      }

      .line:nth-child(2) .land.a {
        animation: land-a2 var(--t) infinite;
      }

      .line:nth-child(3) .land.a {
        animation: land-a3 var(--t) infinite;
      }

      .labels {
        display: grid;
        grid-template-columns: repeat(3, 64px);
        justify-content: space-between;
        padding: 0 8px;
        font-size: 11px;
        text-align: center;
        font-variant-numeric: tabular-nums;
        color: color-mix(in srgb, var(--slate) 58%, transparent);
      }

      .cue {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        letter-spacing: 0.04em;
        color: color-mix(in srgb, var(--slate) 58%, transparent);
      }

      /* The cue light. Lit is standby; the light going out is the go. */
      .lamp {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        box-shadow: inset 0 0 0 1.5px var(--oat);
        position: relative;
      }

      .lamp::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: var(--clay);
        animation: lamp var(--t) step-end infinite;
      }

      .words {
        display: grid;
      }

      .words span {
        grid-area: 1 / 1;
        opacity: 0;
      }

      .words b {
        font-weight: 600;
        color: var(--slate);
      }

      .words .one-speed {
        animation: one-speed var(--t) step-end infinite;
      }

      .words .one-duration {
        animation: one-duration var(--t) step-end infinite;
      }

      /* Lamp and words switch, they do not fade: a cue light is on or off
         and the operator moves on the frame it goes out. Each standby is a
         full second, long enough to read the cue before it is taken. */
      @keyframes lamp {
        0% {
          opacity: 1;
        }
        7.143% {
          opacity: 0;
        }
        45.238% {
          opacity: 1;
        }
        57.143% {
          opacity: 0;
        }
        97.619% {
          opacity: 1;
        }
      }

      @keyframes one-speed {
        0% {
          opacity: 1;
        }
        45.238% {
          opacity: 0;
        }
        97.619% {
          opacity: 1;
        }
      }

      @keyframes one-duration {
        0% {
          opacity: 0;
        }
        45.238% {
          opacity: 1;
        }
        97.619% {
          opacity: 0;
        }
      }

      @keyframes land-a1 {
        0%,
        13.083% {
          opacity: 0;
          transform: scale(0.6);
        }
        13.095% {
          opacity: 1;
          transform: scale(0.6);
          animation-timing-function: var(--ease-out);
        }
        15%,
        30.952% {
          opacity: 1;
          transform: scale(1);
          animation-timing-function: var(--ease-out);
        }
        33.333%,
        100% {
          opacity: 0;
          transform: scale(1);
        }
      }

      @keyframes land-a2 {
        0%,
        17.25% {
          opacity: 0;
          transform: scale(0.6);
        }
        17.262% {
          opacity: 1;
          transform: scale(0.6);
          animation-timing-function: var(--ease-out);
        }
        19.167%,
        30.952% {
          opacity: 1;
          transform: scale(1);
          animation-timing-function: var(--ease-out);
        }
        33.333%,
        100% {
          opacity: 0;
          transform: scale(1);
        }
      }

      @keyframes land-a3 {
        0%,
        21.417% {
          opacity: 0;
          transform: scale(0.6);
        }
        21.429% {
          opacity: 1;
          transform: scale(0.6);
          animation-timing-function: var(--ease-out);
        }
        23.333%,
        30.952% {
          opacity: 1;
          transform: scale(1);
          animation-timing-function: var(--ease-out);
        }
        33.333%,
        100% {
          opacity: 0;
          transform: scale(1);
        }
      }

      @keyframes land-b {
        0%,
        71.417% {
          opacity: 0;
          transform: scale(0.6);
        }
        71.429% {
          opacity: 1;
          transform: scale(0.6);
          animation-timing-function: var(--ease-out);
        }
        73.333%,
        83.333% {
          opacity: 1;
          transform: scale(1);
          animation-timing-function: var(--ease-out);
        }
        85.714%,
        100% {
          opacity: 0;
          transform: scale(1);
        }
      }

      /* The S-curve from the profile cards, normalised to a 0-1 trip. Cue
         1 gives every line the same 120px/s top speed, so each trip lasts
         travel / speed; cue 2 gives every line the same 1.2s. */
      @keyframes travel-1 {
        0% {
          --_p: 0;
        }
        7.143% {
          --_p: 0;
          animation-timing-function: cubic-bezier(0.333, 0, 0.667, 0);
        }
        7.937% {
          --_p: 0.0222;
          animation-timing-function: cubic-bezier(0.333, 0.222, 0.667, 0.556);
        }
        8.333% {
          --_p: 0.0722;
          animation-timing-function: cubic-bezier(0.333, 0.25, 0.667, 0.625);
        }
        9.127% {
          --_p: 0.25;
          animation-timing-function: linear;
        }
        11.111% {
          --_p: 0.75;
          animation-timing-function: cubic-bezier(0.333, 0.375, 0.667, 0.75);
        }
        11.905% {
          --_p: 0.9278;
          animation-timing-function: cubic-bezier(0.333, 0.444, 0.667, 0.778);
        }
        12.302% {
          --_p: 0.9778;
          animation-timing-function: cubic-bezier(0.333, 1, 0.667, 1);
        }
        13.095% {
          --_p: 1;
        }
        30.952% {
          --_p: 1;
          animation-timing-function: cubic-bezier(0.333, 0, 0.667, 0);
        }
        32.857% {
          --_p: 0.9778;
          animation-timing-function: cubic-bezier(0.333, 0.222, 0.667, 0.556);
        }
        33.81% {
          --_p: 0.9278;
          animation-timing-function: cubic-bezier(0.333, 0.25, 0.667, 0.625);
        }
        35.714% {
          --_p: 0.75;
          animation-timing-function: linear;
        }
        40.476% {
          --_p: 0.25;
          animation-timing-function: cubic-bezier(0.333, 0.375, 0.667, 0.75);
        }
        42.381% {
          --_p: 0.0722;
          animation-timing-function: cubic-bezier(0.333, 0.444, 0.667, 0.778);
        }
        43.333% {
          --_p: 0.0222;
          animation-timing-function: cubic-bezier(0.333, 1, 0.667, 1);
        }
        45.238% {
          --_p: 0;
        }
        57.143% {
          --_p: 0;
          animation-timing-function: cubic-bezier(0.333, 0, 0.667, 0);
        }
        59.048% {
          --_p: 0.0222;
          animation-timing-function: cubic-bezier(0.333, 0.222, 0.667, 0.556);
        }
        60% {
          --_p: 0.0722;
          animation-timing-function: cubic-bezier(0.333, 0.25, 0.667, 0.625);
        }
        61.905% {
          --_p: 0.25;
          animation-timing-function: linear;
        }
        66.667% {
          --_p: 0.75;
          animation-timing-function: cubic-bezier(0.333, 0.375, 0.667, 0.75);
        }
        68.571% {
          --_p: 0.9278;
          animation-timing-function: cubic-bezier(0.333, 0.444, 0.667, 0.778);
        }
        69.524% {
          --_p: 0.9778;
          animation-timing-function: cubic-bezier(0.333, 1, 0.667, 1);
        }
        71.429% {
          --_p: 1;
        }
        83.333% {
          --_p: 1;
          animation-timing-function: cubic-bezier(0.333, 0, 0.667, 0);
        }
        85.238% {
          --_p: 0.9778;
          animation-timing-function: cubic-bezier(0.333, 0.222, 0.667, 0.556);
        }
        86.19% {
          --_p: 0.9278;
          animation-timing-function: cubic-bezier(0.333, 0.25, 0.667, 0.625);
        }
        88.095% {
          --_p: 0.75;
          animation-timing-function: linear;
        }
        92.857% {
          --_p: 0.25;
          animation-timing-function: cubic-bezier(0.333, 0.375, 0.667, 0.75);
        }
        94.762% {
          --_p: 0.0722;
          animation-timing-function: cubic-bezier(0.333, 0.444, 0.667, 0.778);
        }
        95.714% {
          --_p: 0.0222;
          animation-timing-function: cubic-bezier(0.333, 1, 0.667, 1);
        }
        97.619% {
          --_p: 0;
        }
        100% {
          --_p: 0;
        }
      }

      @keyframes travel-2 {
        0% {
          --_p: 0;
        }
        7.143% {
          --_p: 0;
          animation-timing-function: cubic-bezier(0.333, 0, 0.667, 0);
        }
        8.492% {
          --_p: 0.0222;
          animation-timing-function: cubic-bezier(0.333, 0.222, 0.667, 0.556);
        }
        9.167% {
          --_p: 0.0722;
          animation-timing-function: cubic-bezier(0.333, 0.25, 0.667, 0.625);
        }
        10.516% {
          --_p: 0.25;
          animation-timing-function: linear;
        }
        13.889% {
          --_p: 0.75;
          animation-timing-function: cubic-bezier(0.333, 0.375, 0.667, 0.75);
        }
        15.238% {
          --_p: 0.9278;
          animation-timing-function: cubic-bezier(0.333, 0.444, 0.667, 0.778);
        }
        15.913% {
          --_p: 0.9778;
          animation-timing-function: cubic-bezier(0.333, 1, 0.667, 1);
        }
        17.262% {
          --_p: 1;
        }
        30.952% {
          --_p: 1;
          animation-timing-function: cubic-bezier(0.333, 0, 0.667, 0);
        }
        32.857% {
          --_p: 0.9778;
          animation-timing-function: cubic-bezier(0.333, 0.222, 0.667, 0.556);
        }
        33.81% {
          --_p: 0.9278;
          animation-timing-function: cubic-bezier(0.333, 0.25, 0.667, 0.625);
        }
        35.714% {
          --_p: 0.75;
          animation-timing-function: linear;
        }
        40.476% {
          --_p: 0.25;
          animation-timing-function: cubic-bezier(0.333, 0.375, 0.667, 0.75);
        }
        42.381% {
          --_p: 0.0722;
          animation-timing-function: cubic-bezier(0.333, 0.444, 0.667, 0.778);
        }
        43.333% {
          --_p: 0.0222;
          animation-timing-function: cubic-bezier(0.333, 1, 0.667, 1);
        }
        45.238% {
          --_p: 0;
        }
        57.143% {
          --_p: 0;
          animation-timing-function: cubic-bezier(0.333, 0, 0.667, 0);
        }
        59.048% {
          --_p: 0.0222;
          animation-timing-function: cubic-bezier(0.333, 0.222, 0.667, 0.556);
        }
        60% {
          --_p: 0.0722;
          animation-timing-function: cubic-bezier(0.333, 0.25, 0.667, 0.625);
        }
        61.905% {
          --_p: 0.25;
          animation-timing-function: linear;
        }
        66.667% {
          --_p: 0.75;
          animation-timing-function: cubic-bezier(0.333, 0.375, 0.667, 0.75);
        }
        68.571% {
          --_p: 0.9278;
          animation-timing-function: cubic-bezier(0.333, 0.444, 0.667, 0.778);
        }
        69.524% {
          --_p: 0.9778;
          animation-timing-function: cubic-bezier(0.333, 1, 0.667, 1);
        }
        71.429% {
          --_p: 1;
        }
        83.333% {
          --_p: 1;
          animation-timing-function: cubic-bezier(0.333, 0, 0.667, 0);
        }
        85.238% {
          --_p: 0.9778;
          animation-timing-function: cubic-bezier(0.333, 0.222, 0.667, 0.556);
        }
        86.19% {
          --_p: 0.9278;
          animation-timing-function: cubic-bezier(0.333, 0.25, 0.667, 0.625);
        }
        88.095% {
          --_p: 0.75;
          animation-timing-function: linear;
        }
        92.857% {
          --_p: 0.25;
          animation-timing-function: cubic-bezier(0.333, 0.375, 0.667, 0.75);
        }
        94.762% {
          --_p: 0.0722;
          animation-timing-function: cubic-bezier(0.333, 0.444, 0.667, 0.778);
        }
        95.714% {
          --_p: 0.0222;
          animation-timing-function: cubic-bezier(0.333, 1, 0.667, 1);
        }
        97.619% {
          --_p: 0;
        }
        100% {
          --_p: 0;
        }
      }

      @keyframes travel-3 {
        0% {
          --_p: 0;
        }
        7.143% {
          --_p: 0;
          animation-timing-function: cubic-bezier(0.333, 0, 0.667, 0);
        }
        9.048% {
          --_p: 0.0222;
          animation-timing-function: cubic-bezier(0.333, 0.222, 0.667, 0.556);
        }
        10% {
          --_p: 0.0722;
          animation-timing-function: cubic-bezier(0.333, 0.25, 0.667, 0.625);
        }
        11.905% {
          --_p: 0.25;
          animation-timing-function: linear;
        }
        16.667% {
          --_p: 0.75;
          animation-timing-function: cubic-bezier(0.333, 0.375, 0.667, 0.75);
        }
        18.571% {
          --_p: 0.9278;
          animation-timing-function: cubic-bezier(0.333, 0.444, 0.667, 0.778);
        }
        19.524% {
          --_p: 0.9778;
          animation-timing-function: cubic-bezier(0.333, 1, 0.667, 1);
        }
        21.429% {
          --_p: 1;
        }
        30.952% {
          --_p: 1;
          animation-timing-function: cubic-bezier(0.333, 0, 0.667, 0);
        }
        32.857% {
          --_p: 0.9778;
          animation-timing-function: cubic-bezier(0.333, 0.222, 0.667, 0.556);
        }
        33.81% {
          --_p: 0.9278;
          animation-timing-function: cubic-bezier(0.333, 0.25, 0.667, 0.625);
        }
        35.714% {
          --_p: 0.75;
          animation-timing-function: linear;
        }
        40.476% {
          --_p: 0.25;
          animation-timing-function: cubic-bezier(0.333, 0.375, 0.667, 0.75);
        }
        42.381% {
          --_p: 0.0722;
          animation-timing-function: cubic-bezier(0.333, 0.444, 0.667, 0.778);
        }
        43.333% {
          --_p: 0.0222;
          animation-timing-function: cubic-bezier(0.333, 1, 0.667, 1);
        }
        45.238% {
          --_p: 0;
        }
        57.143% {
          --_p: 0;
          animation-timing-function: cubic-bezier(0.333, 0, 0.667, 0);
        }
        59.048% {
          --_p: 0.0222;
          animation-timing-function: cubic-bezier(0.333, 0.222, 0.667, 0.556);
        }
        60% {
          --_p: 0.0722;
          animation-timing-function: cubic-bezier(0.333, 0.25, 0.667, 0.625);
        }
        61.905% {
          --_p: 0.25;
          animation-timing-function: linear;
        }
        66.667% {
          --_p: 0.75;
          animation-timing-function: cubic-bezier(0.333, 0.375, 0.667, 0.75);
        }
        68.571% {
          --_p: 0.9278;
          animation-timing-function: cubic-bezier(0.333, 0.444, 0.667, 0.778);
        }
        69.524% {
          --_p: 0.9778;
          animation-timing-function: cubic-bezier(0.333, 1, 0.667, 1);
        }
        71.429% {
          --_p: 1;
        }
        83.333% {
          --_p: 1;
          animation-timing-function: cubic-bezier(0.333, 0, 0.667, 0);
        }
        85.238% {
          --_p: 0.9778;
          animation-timing-function: cubic-bezier(0.333, 0.222, 0.667, 0.556);
        }
        86.19% {
          --_p: 0.9278;
          animation-timing-function: cubic-bezier(0.333, 0.25, 0.667, 0.625);
        }
        88.095% {
          --_p: 0.75;
          animation-timing-function: linear;
        }
        92.857% {
          --_p: 0.25;
          animation-timing-function: cubic-bezier(0.333, 0.375, 0.667, 0.75);
        }
        94.762% {
          --_p: 0.0722;
          animation-timing-function: cubic-bezier(0.333, 0.444, 0.667, 0.778);
        }
        95.714% {
          --_p: 0.0222;
          animation-timing-function: cubic-bezier(0.333, 1, 0.667, 1);
        }
        97.619% {
          --_p: 0;
        }
        100% {
          --_p: 0;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        /* The lines hang at trim and do not travel. Cue 2 is the state
           that is held, since it is the one to copy: one olive landing
           stamp per line, all lit together, breathing with the cue light. */
        .rig .line,
        .words .one-speed,
        .words .one-duration,
        .rig .line .land.a,
        .land.b {
          animation: none;
        }

        .rig .line {
          --_p: 1;
        }

        .words .one-speed,
        .rig .line .land.a {
          opacity: 0;
        }

        .words .one-duration {
          opacity: 1;
        }

        .lamp::after,
        .land.b {
          animation: lamp-soft calc(var(--t) * 0.4) var(--_breathe) infinite alternate;
        }

        @keyframes lamp-soft {
          from {
            opacity: 0.35;
          }
          to {
            opacity: 1;
          }
        }
      }
    </style>
  </head>
  <body>
    <div
      class="stage"
      role="img"
      aria-label="Three flying pieces with travels of 40, 68 and 96 pixels. On cue 1 they share one top speed, so they land one after another; on cue 2 they share one duration and land together on the same frame"
    >
      <p class="cap">one speed lands three times, one duration lands once</p>
      <div class="cue">
        <span class="lamp"></span>
        <span class="words"
          ><span class="one-speed">cue 1 &middot; <b>one speed</b></span
          ><span class="one-duration">cue 2 &middot; <b>one duration</b></span></span
        >
      </div>
      <div class="scene">
        <span class="deck"></span>
        <div class="rig">
          <div class="line">
            <span class="trim"></span>
            <span class="land a"></span>
            <span class="land b"></span>
            <div class="set">
              <span class="lift l"></span>
              <span class="lift r"></span>
              <span class="batten"></span>
              <span class="cloth header"></span>
            </div>
          </div>
          <div class="line">
            <span class="trim"></span>
            <span class="land a"></span>
            <span class="land b"></span>
            <div class="set">
              <span class="lift l"></span>
              <span class="lift r"></span>
              <span class="batten"></span>
              <span class="lamps"><i></i><i></i><i></i></span>
            </div>
          </div>
          <div class="line">
            <span class="trim"></span>
            <span class="land a"></span>
            <span class="land b"></span>
            <div class="set">
              <span class="lift l"></span>
              <span class="lift r"></span>
              <span class="batten"></span>
              <span class="cloth drop"></span>
            </div>
          </div>
        </div>
        <span class="border"></span>
      </div>
      <div class="labels"><span>40px</span><span>68px</span><span>96px</span></div>
    </div>
  </body>
</html>

The variant family

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