Skip to the experiments
PrismInteraction Lab

Can interfaces become expressive without sacrificing usability?

Four small experiments, each built so the expressive layer can be taken away and the interface still works. They are live below. Use them with a mouse, then use them again with only the keyboard.

Every number on this page is produced in your browser while you use it. Until something has run, it says “not measured yet”.

Reduced motion · system: no preference

Reduced motion forced by this page: off.

01Waiting

Can a button be honest about waiting without turning into noise?

The experiment: Async buttonopen it on its own page

The next request

Press it with the keyboard: Tab to focus, Enter or Space to press. Press it twice while it works: the second press is ignored. Past 1.2 s it says so instead of spinning forever.

State

  1. idle
  2. pending
  3. slow
  4. success
  5. error

Legal from here: PRESS

Transitions

fromeventto
idlePRESSpending
pendingSLOWslow
pendingRESOLVEsuccess
pendingREJECTerror
slowRESOLVEsuccess
slowREJECTerror
successRESETidle
successPRESSpending
errorPRESSpending
errorRESETidle

What just happened

Nothing yet. Press the button.

Why this effect exists

A spinner says that something is happening and nothing else. This button commits to five states, and each has its own words, colour and announcement, so the delay is explained rather than decorated.

It stays focusable while it works and ignores presses it cannot honour, so an impatient second press cannot start a second request.

Keyboard and accessibility

  • Tabmoves focus to the button; it stays focusable while it works.
  • EnterSpacepresses it. Presses while it is pending or slow are ignored.
  • EnterSpaceafter a failure, the same keys retry.

Reduced motion: the moving progress bar becomes a still bar (partly filled), and the colour change is instant. The words carry the same information. A polite live region announces each state.

Evidence

States defined
5: idle, pending, slow, success, error
Legal transitions
10
State right now
idle (no press yet)
State changes seen this visit
0
Last change
not measured yet
Time until the SLOW state (last request)
not measured yet
Outcomes
0 succeeded, 0 failed
Reduced-motion mode
off

Read from the button's own state changes while you use it. The slow threshold in this demo is 1.2 s.

02Choosing

Can a menu spring out of its trigger and still behave like a menu?

The experiment: Radial menuopen it on its own page

Tab to the plus, press Enter or Space. Arrow keys walk the ring, Home and End jump, type a letter to jump to a label, Escape closes and puts focus back on the plus.

Last chosen

Nothing yet

Focus order

  1. 1. Reply
  2. 2. Pin
  3. 3. Share
  4. 4. Move
  5. 5. Archive
  6. 6. Mute

Menu is closed. Only the highlighted item is a tab stop (roving tabindex).

Focus trail: none yet

Why this effect exists

Items that travel out of the trigger help the eye connect a control to what it opened. That is all the spring is for.

Underneath it is an ordinary menu button: one tab stop, arrow keys, type-ahead, and Escape returns focus. If the motion were removed, nothing would stop working.

Keyboard and accessibility

  • EnterSpaceon the plus opens the ring and focuses the first item.
  • ↓→opens at the first item, or moves to the next; wraps.
  • ↑←opens at the last item, or moves to the previous; wraps.
  • HomeEndjump to the first or last item.
  • A–Ztype a label's first letters to jump to it.
  • EnterSpaceon an item chooses it and announces it.
  • Esccloses and returns focus to the plus. Tab does the same.

Reduced motion: the items appear instantly in place, with no spring, fade or rotation. Choosing is announced through a polite live region either way.

Evidence

Items on the ring
6: Reply, Pin, Share, Move, Archive, Mute
Menu right now
closed
Focused item
menu closed
Focus moves seen this visit
0
Last chosen
not measured yet
Live-region text after choosing
not measured yet
Focus back on the trigger after choosing
not measured yet
Reduced-motion mode
off

Read from focus events, and (after you choose) from the live region and document.activeElement in this browser.

03Moving

What does a more expressive curve actually do on your screen?

The experiment: Motion compareopen it on its own page

  • CSS transition

    transition: transform 700ms ease. The browser runs the curve.

    Frames
    not measured yet
    Avg frame
    not measured yet
    Worst frame
    not measured yet
    Overshoots
    not measured yet
    Settled at
    not measured yet
  • Linear rAF tween

    requestAnimationFrame, position = distance x elapsed / 700 ms.

    Frames
    not measured yet
    Avg frame
    not measured yet
    Worst frame
    not measured yet
    Overshoots
    not measured yet
    Settled at
    not measured yet
  • Spring physics

    Damped spring integrated each frame (the library's approach). No fixed duration.

    Frames
    not measured yet
    Avg frame
    not measured yet
    Worst frame
    not measured yet
    Overshoots
    not measured yet
    Settled at
    not measured yet

Every number is read in this browser during the run, from the dot's rendered position in each requestAnimationFrame. Frame gaps follow your display refresh and whatever else the page is doing, so they say little about the cost of each approach in isolation. Run it a few times; the values move.

Why this effect exists

Overshoot and settle make movement feel physical, but they also add travel and time. Instead of arguing about it, the same dot moves the same distance three ways.

Each run reads the dot's rendered position every animation frame, so the difference shows up as numbers from your own browser.

Keyboard and accessibility

  • Tabreaches “Run all three” and each row's own Run button.
  • EnterSpacestarts a run. A press while one is running is ignored.

Reduced motion: all three dots snap to the end with no animation, and the table says “snapped” rather than showing numbers. Each finished run is announced through a polite live region.

Evidence

CSS transition
not measured yet
Linear rAF tween
not measured yet
Spring physics
not measured yet
Runs completed this visit
0
Reduced-motion mode
off

Last completed run for each approach. Frame gaps come from requestAnimationFrame timestamps, so they reflect your display and how busy this page is, not the isolated cost of each approach. Run it a few times; the numbers move.

04Loading

Should an interface behave differently at 80 milliseconds than at 4 seconds?

The experiment: Latency adaptopen it on its own page

Nothing loaded yet.

The next request

State

  1. idle
  2. waiting
  3. skeleton
  4. slow
  5. success
  6. error
  7. cancelled

Legal from here: START

Event log

Nothing yet. Press Load.

Timestamps are measured with performance.now() from the moment you press Load. Timer callbacks can run a little late if the page is busy.

Why this effect exists

A skeleton that flashes for 80 ms is noise, and a bare spinner at 4 s is a shrug. This region shows nothing new for the first 150 ms, then a skeleton, and past 2 s it says how long it has been and offers Cancel.

The expressive part is that the interface changes with the wait, rather than treating every wait the same.

Keyboard and accessibility

  • Tabreaches Load / Reload, and Cancel, Retry or Try again when they appear.
  • EnterSpaceactivates the focused button. Load is ignored while a request is out.
  • ←→on the latency slider changes the next request; radios use the arrows too.

Reduced motion: the skeleton is still (no shimmer) and the loaded content appears without a fade. A polite live region says Loading, Still loading, Loaded or Cancelled; failures use role=alert.

Evidence

Phases defined
7, with 16 legal transitions
Requests started this visit
0
Phase right now
idle (no request yet)
Skeleton (last request)
not measured yet
“Taking longer” message and Cancel
not measured yet
Ended
not measured yet
Reduced-motion mode
off

Read from the state machine's own events for the most recent request, timed with performance.now(). Timers can fire late if the page is busy. Set the latency under 150 ms, then over 2 s, to see both paths.

What this page does not claim

  • It does not show these are more usable than the plain alternatives. There was no user study.
  • Measured numbers come from your browser, display and current load. They vary between runs and machines.
  • The live regions are present and update, but the announcements have not been tried with a screen reader.
  • The reduced-motion switch changes what these four experiments do. It does not change anything else on the site.