Motion, made visible

The same card travels from left to right. Why does one look like it is rushing, while the other looks like it has finally come to rest?

The designed feeling of an interface is usually not a flashy 3D effect. It is when something starts, how it stops, and whether the motion takes your attention away.

This piece comes from my motion study notes on s-p.studio. The demos below are simplified, neutral UI comparisons1 rebuilt so you can poke at them directly.

Each demo starts at rest at its endpoint. Press Play for normal speed, click “1×” for quarter-speed playback, or scrub to inspect a frame. Slow playback only stretches the clock—the underlying parameters stay the same.

01 / Change the stop before you change the speed

Watch two paths. They travel the same distance and arrive at the same moment. The top one moves at a constant speed. The bottom one starts slow, speeds up, then settles cleanly. Keep your eye on the start and the end: the same duration can feel completely different depending on how it stops.

A curve turns time progress into motion progress. Time runs along the horizontal axis, progress along the vertical one. Where the line is steeper, that stretch moves faster. The dark solid curve eases gently at both ends and accelerates through the middle.

This in-out-expo curve comes from the source notes and is written as a cubic bezier. It doesn't overshoot the endpoint, and it isn't a physical spring. When you want to fix an interface's rhythm, try changing how it stops before reaching for bounce.

Change the stop before you change the speedTop: linear. Bottom: the source bezier. Both travel the same distance in 700 ms at 1×. Slow playback changes only the clock, not the curve.Constant speedSlow, fast, then slow0700 msProgress0700 msChange the stop before you change the speedTop: linear. Bottom: the source bezier. Both travel the same distance in 700 ms at 1×. Slow playback changes only the clock, not the curve.Constant speedSlow, fast, then slow0700 msProgress0700 ms
100%
700 ms · cubic-bezier(.65, 0, .15, 1)Top: linear. Bottom: the source bezier. Both travel the same distance in 700 ms at 1×. Slow playback changes only the clock, not the curve.
AI recipesettle-bezier
Native implementation parameters
{  "duration": 700,  "easing": "cubic-bezier(.65,0,.15,1)"}
Minimal native implementation
const reduced = () =>  matchMedia('(prefers-reduced-motion: reduce)').matches;function run(  target,  { distance = 180, duration = 700 } = {},) {  const a = target.animate(    [      { transform: 'translateX(0)' },      { transform: `translateX(${distance}px)` },    ],    {      duration: reduced() ? 0 : duration,      easing: 'cubic-bezier(.65,0,.15,1)',      fill: 'forwards',    },  );  return () => a.cancel();}window.MotionPattern = { run };

The portable kit contains the minimal motion rule; this article adds teaching layouts and interactions. Follow your module conventions, preserve reduced motion and cleanup, and do not overwrite global styles.

02 / In a group of cards, let the chosen one leave first

Five cards opening together read as one block shifting. If the chosen card leaves first and its neighbors follow, the change has a clear starting point your eye can track. Neither order is strictly better—it just depends on what you want to emphasize.

The source gallery staggers each card by its distance from the tapped one, just 30 milliseconds apart. The active card moves and grows first, then the rest fan out on both sides. This demo keeps the original 700ms duration and 30ms step. At quarter speed the step stretches to 120ms, and the whole sequence slows down together.

It doesn't have to start from the third card. Pick another number above, then fold it back: outer cards return first, and the focused card lands last. Sharing the same geometry on open and close preserves where the group came from.

A stagger doesn't always need to radiate from the center, either—some decks in the notes step in a ring across rows. Before picking an order, decide where the change starts.

Start with
Let the chosen card leave firstTop: together. Bottom: the dark card starts, then its neighbors follow at 30 ms intervals. Choose another starting card, or fold back to see the outer cards return first. Geometry is adapted; timing and order follow the notes.All at once15243Chosen card first15243+60 ms+60 ms+30 ms+30 ms+0 msLet the chosen card leave firstTop: together. Bottom: the dark card starts, then its neighbors follow at 30 ms intervals. Choose another starting card, or fold back to see the outer cards return first. Geometry is adapted; timing and order follow the notes.All at once15243Chosen card first15243
100%
700 ms · |i − q| × 30 msTop: together. Bottom: the dark card starts, then its neighbors follow at 30 ms intervals. Choose another starting card, or fold back to see the outer cards return first. Geometry is adapted; timing and order follow the notes.
AI recipefocus-stagger

The portable recipe demonstrates horizontal translation only. This article additionally interpolates rectangle size and position, and adds the reverse journey.

Native implementation parameters
{  "duration": 700,  "stagger": 30,  "easing": "cubic-bezier(.65,0,.15,1)",  "selected": 2}
Minimal native implementation
const reduced = () =>  matchMedia('(prefers-reduced-motion: reduce)').matches;function run(  container,  {    selected = 2,    stagger = 30,    duration = 700,    gap = 58,  } = {},) {  const cards = [...container.children];  const q = Math.max(    0,    Math.min(cards.length - 1, selected),  );  const animations = cards.map((card, i) =>    card.animate(      [        { transform: 'translateX(0)' },        { transform: `translateX(${(i - q) * gap}px)` },      ],      {        duration: reduced() ? 0 : duration,        delay: reduced() ? 0 : Math.abs(i - q) * stagger,        easing: 'cubic-bezier(.65,0,.15,1)',        fill: 'both',      },    ),  );  return () => animations.forEach((a) => a.cancel());}window.MotionPattern = { run };

The portable kit contains the minimal motion rule; this article adds teaching layouts and interactions. Follow your module conventions, preserve reduced motion and cleanup, and do not overwrite global styles.

03 / Text only needs to move a little

Text doesn't have to fly in from off screen. A tiny nudge plus clearing a subtle blur is enough to show “this just opened” without making anyone chase the words.

In the source notes, the caption settles upward by 16 pixels as a 4px blur clears and the container expands from 0fr to 1fr over 700ms. Here I placed those values inside a real disclosure note without an extra opacity fade.

Click “Read the note” on either side to toggle both. Watch the disclosure open up room while the arrow turns immediately: the body opens in 700ms and closes in 690ms, while the arrow rotates over 150ms on a separate out-expo curve.

Short notes work great like this. Long articles don't need every paragraph performing—once text has settled, let it stay put.

Appears immediately0 ms
DeliveryArrives Tuesday
Keep the change close

Keep the words within sight. A small shift says: this just opened. Once the text settles, let it stay quietly in place.

Rise, then clarity700 / 690 ms
DeliveryArrives Tuesday
Keep the change close

Keep the words within sight. A small shift says: this just opened. Once the text settles, let it stay quietly in place.

Click either side at normal speed; replay can be slowed down.

100%
16 px · blur 4 px · 700 / 690 msLeft / top: instant. Right / bottom: a real disclosure, with a 16 px rise, 4 px blur clearing and 0fr → 1fr expansion in 700 ms; it closes in 690 ms. The arrow turns in 150 ms. No extra fade is added.
AI recipetext-reveal

The portable text recipe retains an illustrative fade. This article instead uses a height disclosure without that extra fade; the rise and blur values are shared.

Native implementation parameters
{  "duration": 700,  "rise": 16,  "blur": 4,  "easing": "cubic-bezier(.65,0,.15,1)"}
Minimal native implementation
const reduced = () =>  matchMedia('(prefers-reduced-motion: reduce)').matches;function run(  target,  { duration = 700, rise = 16, blur = 4 } = {},) {  const a = target.animate(    [      {        transform: `translateY(${rise}px)`,        filter: `blur(${blur}px)`,        opacity: 0,      },      {        transform: 'translateY(0)',        filter: 'blur(0)',        opacity: 1,      },    ],    {      duration: reduced() ? 0 : duration,      easing: 'cubic-bezier(.65,0,.15,1)',      fill: 'both',    },  );  return () => a.cancel();}window.MotionPattern = { run };

The portable kit contains the minimal motion rule; this article adds teaching layouts and interactions. Follow your module conventions, preserve reduced motion and cleanup, and do not overwrite global styles.

04 / Acknowledge the press, then finish on release

If a button is still slowly shrinking while your finger has already lifted, the UI feels sluggish. The right side confirms the press immediately and saves the recovery for release.

In the source notes, .pressable sets the press scale transition to 0ms2 and snaps straight to 97%, then recovers over 150ms on release.

Hold either button yourself to feel the difference—mouse, touch, Space, and Enter all work. The left side drags out the press on purpose; the right side answers first and returns cleanly. Replay and slow playback help inspect the frames, while direct presses always respond at real speed. The return on the right is still a bezier curve, so it won't oscillate.

A delayed press350 / 150 ms
Field NotesNo. 04 — Grid$24
Immediate feedback0 / 150 ms
Field NotesNo. 04 — Grid$24

ReleasedMouse / touch / Space or Enter

100%
scale .97 · 0 / 150 ms · out-quadHold either button to compare both: left is deliberately slow, right cuts straight to 97% and returns over 150 ms on release. Direct interaction always runs at 1×; replay can be slowed down.
AI recipepress-feedback
Native implementation parameters
{  "downDuration": 0,  "scale": 0.97,  "releaseDuration": 150,  "easing": "cubic-bezier(.25,.46,.45,.94)"}
Minimal native implementation
const reduced = () =>  matchMedia('(prefers-reduced-motion: reduce)').matches;function bind(button) {  let animation = null;  const initial = button.style.transform;  const down = () => {    animation?.cancel();    button.style.transform = 'scale(.97)';  };  const up = () => {    if (button.style.transform !== 'scale(.97)') return;    animation?.cancel();    button.style.transform = initial;    animation = button.animate(      [        { transform: 'scale(.97)' },        { transform: initial || 'scale(1)' },      ],      {        duration: reduced() ? 0 : 150,        easing: 'cubic-bezier(.25,.46,.45,.94)',      },    );  };  const pointerDown = (e) => {    if (e.button !== 0 || button.disabled) return;    button.setPointerCapture?.(e.pointerId);    down();  };  const keyDown = (e) => {    if (      (e.key === ' ' || e.key === 'Enter') &&      !e.repeat &&      !button.disabled    )      down();  };  const keyUp = (e) => {    if (e.key === ' ' || e.key === 'Enter') up();  };  const events = {    pointerdown: pointerDown,    pointerup: up,    pointercancel: up,    lostpointercapture: up,    keydown: keyDown,    keyup: keyUp,    blur: up,  };  for (const [type, fn] of Object.entries(events))    button.addEventListener(type, fn);  return () => {    for (const [type, fn] of Object.entries(events))      button.removeEventListener(type, fn);    animation?.cancel();    button.style.transform = initial;  };}window.MotionPattern = { bind };

The portable kit contains the minimal motion rule; this article adds teaching layouts and interactions. Follow your module conventions, preserve reduced motion and cleanup, and do not overwrite global styles.

05 / A spring does not have to wobble like jelly

A spring doesn't have to bounce back and forth. The dark path pulls up to its target and stops cleanly; the gray path overshoots a little before settling back. Both use the same spring math—only the damping differs.

The standard scroll wheel branch in the source gallery uses critical damping. Here the model starts from rest toward a fixed target, so the dark curve never overshoots3.

Gray is an underdamped comparison I added for contrast. Bounce isn't just for playful toys—a subtle overshoot can underline a state change—though when browsing photos, less wobble usually feels calmer. Let the job decide whether it should bounce back.

A spring does not have to bounceTop: critical damping. Bottom: an underdamped teaching comparison. Both start at rest and follow a fixed target for 0.6 model seconds. Try slow playback to inspect the stop; this is not a full scroll simulation.Critical dampingζ 1.0Underdamped comparisonζ 0.300.6 sProgressζ 1.0 / 0.3target0TimeA spring does not have to bounceTop: critical damping. Bottom: an underdamped teaching comparison. Both start at rest and follow a fixed target for 0.6 model seconds. Try slow playback to inspect the stop; this is not a full scroll simulation.Critical dampingζ 1.0Underdamped comparisonζ 0.300.6 sProgressζ 1.0 / 0.3target0Time
100%
ω = 25 rad/s · ζ = 1 / .3Top: critical damping. Bottom: an underdamped teaching comparison. Both start at rest and follow a fixed target for 0.6 model seconds. Try slow playback to inspect the stop; this is not a full scroll simulation.
AI recipecritical-glide
Native implementation parameters
{  "omega": 25,  "zeta": 1,  "from": 0,  "to": 200,  "initialVelocity": 0}
Minimal native implementation
const reduced = () =>  matchMedia('(prefers-reduced-motion: reduce)').matches;function run(  target,  { from = 0, to = 200, omega = 25 } = {},) {  let frame = 0,    cancelled = false;  const initial = target.style.transform;  const set = (x) => {    target.style.transform = `translateX(${x}px)`;  };  if (reduced()) {    set(to);    return () => {      target.style.transform = initial;    };  }  const start = performance.now();  set(from);  function tick(now) {    if (cancelled) return;    const t = (now - start) / 1000;    const x =      to -      (to - from) * (1 + omega * t) * Math.exp(-omega * t);    set(x);    if (Math.abs(to - x) < 0.1) {      set(to);      return;    }    frame = requestAnimationFrame(tick);  }  frame = requestAnimationFrame(tick);  return () => {    cancelled = true;    cancelAnimationFrame(frame);    target.style.transform = initial;  };}window.MotionPattern = { run };

The portable kit contains the minimal motion rule; this article adds teaching layouts and interactions. Follow your module conventions, preserve reduced motion and cleanup, and do not overwrite global styles.

Don't memorize numbers—learn what to look for

Next time you tune an interface, skip copying magic numbers first. Watch how things start and stop, spot where a group change begins, keep text travel short, and check if press feedback lags. Only then decide whether bounce actually helps.

Once you see it, let your own AI build with it

Expand the AI recipe under any demo to copy its prompt and minimal code. Or download and unzip motion-kit.zip, then point Codex or Claude Code to motion-kit/SKILL.md and reference each pattern by its stable ID4.

  1. 1All demos are neutral teaching comparisons adapted for this column, not frame-by-frame copies of the original site. ↩
  2. 20ms here is the CSS transition duration, not a claim that physical hardware latency from touch to pixel is zero. ↩
  3. 3Real scrolling involves moving targets, initial velocity, and hard flicks, so critical damping can still overshoot slightly under extreme input. ↩
  4. 4motion-kit.zip is a portable local bundle—it doesn't auto-register global skills or call any remote endpoints. ↩

Acknowledgements

Built with Gemini / DeepSeek, with a little help from yours truly.

12:00am in Xiamen, China