1 min read

Prototyping motion in the browser

Motion that looks great in a design tool often feels wrong on a real device. I stopped handing over videos and started handing over throwaway prototypes.

Laptop with a code editor on a dark desk

A video shows one path through an interaction at one speed. Real people interrupt animations, scroll while they run and use slow phones. You only discover how the motion behaves when you can touch it.

Throwaway on purpose

My prototypes are single HTML files with no build step. They are ugly inside and that's the point: nobody is tempted to ship them, and I can try ten variants in an afternoon.

  • One file per idea, named after the question it answers
  • Sliders for every timing value so the team can tune it live
  • Tested on the cheapest phone in the office

Hand over numbers, not videos

When a prototype feels right, the final values go into the design system as motion tokens. Developers get durations, curves and spring settings they can copy, and the prototype stays in the repository as living documentation.