David Paterni
  • Case study
  • Interaction design reference

The Interaction Layer: seven principles of interaction design, each shown with a live demo

Interaction design is how a product behaves when you use it. Here are seven principles, each with a demo you can try.

Drag the top card and throw it, or use the arrow keys. Each card is one of the seven principles.

  1. Principle 01

    Press Save

    FeedbackEvery action gets an immediate, clear answer.Nielsen: visibility of system status
  2. Principle 02
    Order 1042Shipped
    Order 1041Delivered
    Order 1040Delivered
    SpeedDesign how fast it feels, not just how fast it is.Nielsen response limits · Doherty ≈400ms
  3. Principle 03
    AffordanceMake what's possible visible, not just available.Norman: affordance vs signifier
  4. Principle 04
    ForgivenessPrefer a quick undo to a confirmation dialog.Nielsen: user control & freedom
  5. Principle 05
    Total$42.00
    DisclosureShow what's needed and keep the rest a step away.Tesler's Law · Hick's Law
  6. Principle 06
    ManipulationAct on the object itself, and keep things where people left them.Shneiderman: direct manipulation
  7. Principle 07
    KeyClick here, then press any key
    InputSupport mouse and keyboard. That's accessibility too.Fitts's Law · accelerators · access
1 of 7

Context

My own reference piece

My role

Researched, wrote and built it alone

What I built

Seven interaction design principles, each with a live demo, built by hand with no animation library

Status

Live

Decisions

Principle 01

Every action gets an answer

Feedback & system status

If you click and nothing visibly happens, the product looks broken, even if it worked.

The first job is to confirm the action happened. Without that, people click again.

Nielsen's Heuristic #1: Visibility of system status. The system should always tell people what is going on, with feedback in a reasonable time.

Example: a task that checks off with a small animation.

Live demo: click both buttons and compare

no feedback

This button adds the item but shows nothing, so you click again to be sure.

Cart: 0

full feedback loop

Shows a pressed state, then "Adding…", then "Added ✓", and tells screen readers too. It can't be clicked again while the request runs.

Cart: 0

The right button makes the result clear, so you click once.

Motion lens · 01 · feedback

The button shrinks to 0.86 of its size and back in 120ms.

Principle 02

Perceived speed matters more than measured speed

Perceived performance & latency

Show the result right away, confirm it with the server in the background, and a 600ms request feels instant.

Nielsen's response-time limits. About 0.1s feels instant, 1s keeps a train of thought, and 10s is the limit of attention.
The Doherty Threshold (≈400ms). When responses stay under about 400ms, people work faster and get more done.

Example: Gmail's "Undo Send" adds a delay on purpose, so a mistake can be taken back.

Live demo: add a few tasks each way and watch the wait

Both hit the same ~700ms "server." Only one makes you watch it.

    Optimistic mode isn't faster. It just doesn't make you wait.

    Motion lens · 02 · speed

    New items fade in over 220ms and leave in 150ms.

    Principle 03

    Show people what they can do

    Affordances & signifiers

    If people can't see that something is possible, they won't try it.

    An affordance is what an object lets you do. A signifier is the cue that tells you so.

    Norman: affordance vs signifier. "Affordances determine what actions are possible. Signifiers communicate where the action should take place."

    Example: pull to refresh works because the list stretches as you pull.

    Live demo: the same draggable rows, with and without signifiers

    Show signifiers
    Both rows are draggable. Can you tell which?
    Quarterly roadmap
    Hiring plan
    Launch checklist

    What you can do didn't change. Only what you can see did.

    Motion lens · 03 · affordance

    The handle lifts 5px in 120ms.

    Principle 04

    Prefer undo to "Are you sure?"

    Forgiveness & reversibility

    A confirmation dialog slows everyone down, every time, to catch a rare mistake. Undo only costs something for the person who made the mistake.

    Confirmations pile up until people click "Yes" without reading.

    Nielsen: user control & freedom. People need a clearly marked "emergency exit."

    Examples: Gmail's "Undo Send" and Cmd/Ctrl-Z.

    Live demo: delete the same emails two ways and compare

      Count your clicks in each mode.

      Motion lens · 04 · forgiveness

      The undo message rises 16px over 220ms.

      Principle 05

      Show what most people need, and keep the rest one step away

      Progressive disclosure & density

      Some complexity can't be removed. The job is to decide who deals with it, and when.

      Show what most people need now and keep advanced options one step away.

      Tesler's Law: conservation of complexity. Every application has some complexity that can't be removed.
      Hick's Law. The more choices there are, and the more complex they are, the longer it takes to decide.

      Example: the command palette, usually ⌘K.

      Live demo: press the button or ⌘/Ctrl + K

      Project workspace

      A clean surface. Everything else is one keystroke away.

      No command run yet.

      Type to filter, ↑↓ to move, Enter to run, Esc to close. Every action is within reach, but the screen stays simple.

      Motion lens · 05 · disclosure

      The palette grows out of its button in 220ms.

      Principle 06

      Let people act on the thing itself

      Direct manipulation & spatial consistency

      Let people drag the card, instead of opening a "move card" dialog and typing a position number.

      The thing you care about is on screen, you can grab it, and you can reverse the change.

      Shneiderman: direct manipulation. Keep the objects people care about on screen.

      Example: dragging a card between columns on a board.

      Live demo: drag to reorder, or use the keyboard

        Drag a row with the mouse, or select one with Tab, press Space to grab, move with ↑↓, and Space again to drop. Dragging that only works with a mouse leaves keyboard users out, so this works both ways and announces each move to screen readers.

        Motion lens · 06 · manipulation

        A spring carries the row into place when you let go.

        Principle 07

        Support both mouse and keyboard

        Input, shortcuts & accessibility

        A first-time user with a mouse and an expert who never leaves the keyboard should both be able to reach every action.

        Give every important action a visible button and a keyboard shortcut.

        Fitts's Law. The time it takes to hit a target depends on how far away and how big it is.

        Example: every demo on this page works from the keyboard.

        Live demo: use this toolbar with the mouse or the keyboard

        Click a button, or hold Alt and tap the highlighted letter while focus is in this card.

        No action yet.

        The shortcut is shown on the button.

        Motion lens · 07 · input

        The focus ring jumps straight to the next field. Animating it would make keyboard users wait.

        Every principle in one working demo

        Open a pattern and it grows into a detail view you can use. Press ⌘K for commands.

        Interaction Layerlive reduced motion
        Pick a pattern to open it, or press the command key. Use arrow keys to move, Enter to open, Esc to go back.
        container transform spring physics orchestration optimistic + undo layout-diff scale-from-origin keyboard reduced-motion safe

        More detail

        Part two: the motion layer

        How motion supports the seven principles

        Timing and movement make changes easy to follow. Each demo still works with reduced motion.

        Motion 01

        How the speed of a movement changes how it feels

        Physics: easing & springs

        The same move, played on three different speed curves, feels completely different: one mechanical, one smooth, one lively.

        Linear motion looks mechanical. Eased motion slows like a real object. A spring can overshoot and be interrupted.

        Disney's 12 principles: slow in & slow out, follow-through, squash & stretch. The animators who wrote The Illusion of Life never moved anything at a constant speed.

        Example: iOS sheets move on springs.

        Live demo: play the same move on three curves, then adjust the spring

        Linear

        cubic-bezier(0,0,1,1)

        Eased

        cubic-bezier(.2,0,0,1)

        Spring (overshoot)

        stiffness 220 · damping 18

        220 18
        Eased curve: position over time, slowing to a stop
        Spring: goes past the target line, then settles

        Move the sliders to see the curve change.

        The decision. For interface motion I default to a snappy spring (stiffness 300, damping 30) instead of a fixed-length animation.

        Reduced motion: the curves are drawn but nothing loops.

        Motion 02

        Keep the same object on screen as the view changes

        Continuity: shared-element transitions

        When a small item opens into a larger view, the item itself should grow into that view, not vanish while a new screen appears.

        One object stays on screen through the change, so your attention stays with it.

        Material "container transform" · iOS zoom continuity · Android predictive back. Google's and Apple's guidelines agree: a transition between two states should keep one element on screen throughout, so people don't lose their place.

        Example: a photo thumbnail that zooms to fill the screen.

        Live demo: click any tile or row and watch it grow into the detail view

        The same card is moved with a technique called FLIP.

        The decision. Opening takes 320ms on a standard curve and animates only transform, opacity and border-radius, which are cheap for the browser to draw.

        Reduced motion: the view fades in place.

        Motion 03

        Bring items in one after another, not all at once

        Orchestration, stagger & follow-through

        When many things appear together, the order they appear in helps people understand the layout.

        Cards that appear a few dozen milliseconds apart are read in order.

        Disney: staging & follow-through · Material emphasized-easing list reveal. Stagger decides when each item gets attention.

        Example: dashboard cards arriving one after another.

        Live demo: replay the reveal, change the stagger, then replay again

        55 ms

        Around 40 to 60 ms reads in order. Past about 100 ms feels like waiting.

        The decision. I stagger each item by ~50ms with a soft spring, capped so the last item lands within ~500ms in total.

        Reduced motion: every card fades in at once.

        Motion 04

        Animate the change instead of jumping to it

        Layout diff: animating a change in order

        When a list is sorted or filtered, rows should move to their new places, so you can follow the one you were looking at.

        Animating a sort lets you keep your place.

        "Always animate the diff." The rule behind this kind of layout animation: if a change moves things, show them moving.

        Example: rows that slide when you sort a table.

        Live demo: sort and filter, and every row slides to its new place

        Sort by

        The decision. Rows slide over 260ms on a standard curve, animating transform only.

        Reduced motion: rows reorder instantly.

        Motion 05

        Every animation can be interrupted

        Springs that keep their speed when you grab them

        The test: grab something while it's moving and push it the other way. Does it restart, or does it change direction and keep the speed it had?

        A spring tracks position and speed, so a new target mid move just changes direction.

        Apple HIG: "people can interrupt and reverse animations." iOS sheets are built on springs that track speed.

        Example: an iOS sheet you fling, catch and reverse.

        Live demo: drag and fling the sheet, then grab it mid-move and reverse

        drag the sheet ↕ · fling & catch it
        Now Playing

        Fling me up or down, then catch me and drag the other way.

        Half open.

        Work app version: drag to resize, with snap points. Drag the divider (or select it and use ←→), let go, and it springs to the nearest snap point, keeping its speed.

        Sidebar
        Canvas

        Sidebar at 50%.

        The speed of your last movement passes to the spring.

        The decision. A snappy spring (stiffness 300, damping 30, mass 1), updated every frame with requestAnimationFrame using a simple physics step (semi-implicit Euler).

        Reduced motion: it jumps to the nearest snap point.

        Motion 06

        Things appear from whatever opened them

        Origin: cause & effect

        A menu that grows out of the button you pressed clearly came from that press. A menu that fades in at the center of the screen doesn't.

        When a menu grows from its button, you can see where it came from.

        macOS menus · iOS context-menu peek · FAB-to-sheet. macOS and iOS grow menus and sheets out of the control that opened them.

        Example: long press an iOS app icon and the menu grows out of it.

        Live demo: open the menu, then add a row with the button

          The decision. The popover grows from 0.92 → 1 with its transform-origin at the button, over 180ms, slowing as it arrives.

          Reduced motion: the menu fades in beside its button.

          Motion 07

          Act now, then show whether it worked

          Optimistic updates, success & failure

          The rule: act now, reconcile later, visibly. Show the result as soon as someone acts, then use motion to show whether the server agreed.

          The message appears before the server answers. If it fails, it shakes and offers a retry.

          Optimistic UI · the 0.1 / 1 / 10s response tiers · sub-100ms acknowledgment. Respond within about 100ms and the app feels instant.

          Example: iMessage shows your bubble right away.

          Live demo: send a few messages, then turn on "Force failure"

          The decision. The bubble comes in over 200ms, slowing as it arrives.

          Reduced motion: failure shows in color and text only.

          Motion 08

          Knowing when not to animate

          Restraint & reduced motion

          Zooms and parallax make some people feel sick.

          Every big movement gets a calm replacement. This switch controls the whole page.

          WCAG 2.3.3 (Animation from Interactions) · Apple "Reduce Motion" swaps. People must be able to turn off non-essential motion triggered by interaction.

          Live demo: this switch controls the whole page

          Reduce motion (whole page)

          Motion: full. Synced to your system setting.

          Can cause dizziness · large zoom + parallax

          Open
          zoom 0.4→1 + drift

          Safe replacement · fade only

          Open
          opacity only

          Turn on the switch and play it again.

          The decision. One motionOK() helper checks both the system setting (matchMedia('(prefers-reduced-motion: reduce)')) and this switch.

          If your system already asks for reduced motion, this page started in reduced mode and the switch shows it.

          Summary

          What the principles have in common

          All seven are about what happens between an action and its result.

          The seven principles at a glance

          01 Feedback
          Nielsen: visibility of system status
          Every action gets an immediate, clear answer.
          02 Speed
          Nielsen response limits · Doherty ≈400ms
          Design how fast it feels, not just how fast it is.
          03 Affordance
          Norman: affordance vs signifier
          Make what's possible visible, not just available.
          04 Forgiveness
          Nielsen: user control & freedom
          Prefer a quick undo to a confirmation dialog.
          05 Disclosure
          Tesler's Law · Hick's Law
          Show what's needed and keep the rest a step away.
          06 Manipulation
          Shneiderman: direct manipulation
          Act on the object itself, and keep things where people left them.
          07 Input
          Fitts's Law · accelerators · access
          Support mouse and keyboard. That's accessibility too.

          The motion layer at a glance

          M1 Physics
          Disney 12 · spring vs. ease
          Springs feel like real objects and can be interrupted. Fixed curves can't.
          M2 Continuity
          Material: container transform
          Animate between states with FLIP so people keep their place.
          M3 Orchestration
          Staggering & choreography
          Bring items in one after another to guide the eye.
          M4 Layout diff
          FLIP: first/last/invert/play
          When a list reorders, move the rows instead of fading them.
          M5 Interruptible
          Velocity handoff
          A gesture passes its speed to the spring, so nothing feels stuck.
          M6 Origin
          Scale-from-source
          Menus and panels grow out of whatever opened them.
          M7 Optimistic
          Latency compensation
          Act instantly, then confirm or roll back where people can see it.
          M8 Restraint
          WCAG 2.3.3 · prefers-reduced-motion
          Know when not to animate, and replace motion with something calm.

          Where these principles show up in my work

          Say When

          Helping older adults avoid missed and double doses

          An iPhone and Apple Watch app for people who take several medicines a day. Setup reads each pharmacy label and turns its directions into reminder times. The app checks before a second dose, and one family member hears when the blood thinner is late.

          KeySign

          Signing a home offer at the property

          Buyers decide right after a showing, but offer tools need a desk and every state has its own forms. KeySign lets the agent write, sign and send a compliant offer from their phone at the property, then open escrow.

          Criterion

          Interview practice with scores you can question

          Every score links to the exact words that earned it. If you disagree with a score, you can challenge it. The AI re-checks it, then raises, holds or lowers it, or hands it to a person. Live at criterionscore.com.