Journal // Post

4 Dec 2026

Why Mac menus blink before they close

The row you pick in a Mac menu flashes once before the menu goes away. It is a small confirmation the web mostly leaves out, and it takes a few lines to add.

  • design-engineering
  • interaction

Open any menu on a Mac, pick something, and watch the row instead of the result. Its highlight goes out and comes back once, and only then does the menu disappear. It is over in less than a quarter of a second, which is why most people have never noticed it.

Here is the same menu twice. The first closes the way most menus on the web do. The second blinks first.

A // Closes at once
Pick a row
B // Blinks, then closes
Pick a row
Pick a row in each menu, then press Actions to open it again. Aim for Archive and watch whether you can tell it was not Delete.

What the blink is for

A menu is a stack of small targets a few pixels apart, and it removes itself the moment you choose. If the pointer slipped by one row on the way down, nothing is left on screen to tell you. You have to look at the rest of the interface and work backwards: did the thing get archived, or is it gone?

The blink answers that before you have to ask. It marks the exact row that took the click, in the place your eyes already are, while the menu is still there to read. When the row that flashes is not the one you meant, you know to reach for undo straight away.

It is older than it looks

This is not a recent flourish. Classic Mac OS had a "Menu Blinking" setting in the General Controls panel, with four choices: off, or one, two or three blinks. The setting is long gone, but the behaviour stayed, and macOS today blinks the chosen item once.

Why the web skips it

The blink costs time. The action cannot run until the blink is over, so every pick is slower by its length. Someone who uses a menu a hundred times a day will feel that, and it is the reason people used to turn the setting off.

So the rules I follow are short:

  • Blink once. One flash is enough to confirm the row. More reads as the interface stalling.
  • Keep it under 200ms. The demo takes 180ms: lit, unlit, lit, 60ms each.
  • Switch, do not fade. A fade looks like a slow transition. A hard on and off looks like a signal.
  • Run the action after the blink. Whatever the action changes on screen should arrive once the confirmation is over, so the two are not competing for attention.

How the demo is built

The menus above are React, so the blink is a few timers around a piece of state: which row is blinking, and whether its highlight is lit.

const STEP_MS = 60; // lit, unlit, lit: 180ms in all

function useBlinkPick(onDone: (label: string) => void) {
  const [blink, setBlink] = useState<{ label: string; lit: boolean } | null>(null);
  const timers = useRef<number[]>([]);
  const still = useReducedMotion();

  useEffect(() => () => timers.current.forEach(window.clearTimeout), []);

  const pick = (label: string) => {
    if (blink) return;
    setBlink({ label, lit: true });
    timers.current = [
      window.setTimeout(() => setBlink({ label, lit: Boolean(still) }), STEP_MS),
      window.setTimeout(() => setBlink({ label, lit: true }), STEP_MS * 2),
      window.setTimeout(() => {
        setBlink(null);
        onDone(label);
      }, STEP_MS * 3),
    ];
  };

  return { blink, pick };
}

Each row calls pick when it is clicked, and onDone closes the menu and runs the action. While a row is blinking it drops its hover style and its colour transition, and takes its highlight from blink.lit alone:

<button
  role="menuitem"
  onClick={() => pick(item.label)}
  className={
    blink?.label === item.label
      ? blink.lit ? "highlight" : ""
      : "hover-highlight"
  }
>
  {item.label}
</button>

Three details matter more than the timers:

  • One pick at a time. pick returns early while a blink is running, so a double click cannot run the action twice.
  • Reduced motion still gets the confirmation. A flash is exactly what that setting asks you to avoid, so the highlight is held steady for the same 180ms instead of switching off.
  • The keyboard takes the same path. The rows are real buttons, so Enter and Space fire the same click and blink the same way.