Physics in UI shows users what changed without a label. Three builds where real physics earned its place, where it hurts, and a 3-question test to decide.
Physics in UI means interface elements that behave like objects: they have weight, momentum and springiness, they respond to your finger with force, and they settle instead of snapping. I think most product interfaces should use a little of it, because physics answers a question static UI cannot: "did that just happen, and how much?" A card that resists, a letter you can throw, a bag that gets heavier as you fill it all tell the user what changed without a label. But physics is a tool, not a style. Used on a settings screen or a data table, it gets in the way. Below I show where I have used real physics engines in shipped builds, what each one taught me, and a simple test for when your product UI should have physics and when it should stay still.
People mix up three things that look similar on a screen.
Easing is a curve. You pick ease-out, the element moves from A to B in 300 ms, done. It is decided in advance and ignores the user.
Springs are physics-based animation. You describe stiffness, damping and sometimes mass, and the motion comes out of those numbers. If the user flicks harder, the spring carries that velocity. Apple's WWDC session Animate with springs is still the clearest explanation of why this feels more natural than a fixed curve.
Simulation is a full physics world: bodies with mass, gravity, collisions, friction. Engines like Matter.js in 2D and Rapier in 3D run it in the browser at frame rate.
Most "physics in UI" conversations are about springs, and that is where most products should start. Figma now lets you set springs by stiffness, damping and mass, which I covered in Figma spring animation gets real physics. Simulation is rarer, and it is where the interesting product questions live.
On my AI design experiments page, several builds use real physics. I did not add it for decoration. Each one solves a different design problem.
In the Haribo Pick and Mix configurator, every gummy bear you drop is a Rapier physics body. It falls into a transparent bag on a scale, and the grams and price update as it settles. Each bear weighs between 2.0 and 2.6 g in the code, so the total is never a clean multiple. That small imperfection is the whole point. A price that comes from something you watched fall feels earned, not computed. I broke the full build down in how to make a 3D configurator.
In the Payno card experiment, freezing your bank card covers it in frost. Unfreezing takes three taps on the ice, each one cracking it further until it shatters, with sound. A toggle would be faster. It would also be forgettable, at the exact moment a user needs certainty that their card is safe. Physical resistance turns a setting into a decision. The details are in micro interactions examples: the shatter-to-unfreeze card.
On the Socialme landing page, each letter of the logo is a Matter.js body. You can grab a letter and throw it, and it bounces off the others. The letters stay real text: the physics runs underneath and moves the text with a CSS transform on every update. The product is about reacting and being noticed, so touching the logo is the pitch. I wrote about it in interactive landing page examples.
This is the part most physics demos skip. I would not use simulation, and sometimes not even springs, in these places:
The common thread: physics is good at showing consequence and inviting play. It is bad at speed and precision.
| Easing curve | Spring | Full simulation | |
|---|---|---|---|
| What you set | Duration and curve | Stiffness, damping, mass | Bodies, gravity, friction, collisions |
| Responds to user velocity | No | Yes | Yes |
| Best for | Fades, simple reveals | Sheets, cards, buttons, drags | Configurators, playful brand moments, games |
| Cost to build | Low | Low to medium | Medium to high |
| Risk | Feels mechanical | Too bouncy if tuned badly | Performance, unpredictability, accessibility |
| Example from my builds | Text reveals on scroll | Card and sheet motion in Payno | Haribo bears, Socialme letters |
Before adding physics, I ask three questions. If the answer to all three is no, the screen should stay still.
Then I add sound. A physical interaction without sound feels like a video of an object, not the object. Every build above synthesizes or plays sound on contact, and the reasons are in UI sound design for product designers.
Physics used to be the part a designer described in a spec and hoped engineering would get to. AI coding tools changed that. The builds above started in Figma, then went to code with Claude and the Figma MCP, and the physics engine was wired in as part of the same loop. The loop is short enough to tune damping, try a heavier bear or a softer bounce, and feel the result on a phone without waiting on a handoff.
That does not mean AI picks good values. The model will happily produce a bounce that looks fine in a recording and feels cheap in the hand. Tuning is still a design call, which is why I think motion and interaction belong to the designer. More on that in AI motion design in real interfaces.
It is motion calculated from physical properties, like stiffness, damping and mass, instead of a fixed duration and curve. The element reacts to how fast and how hard the user moves it, and settles naturally.
Springs are cheap. Full simulations cost more, especially with many bodies or 3D collisions. Keep the body count small, pause the world when nothing moves, and test on a mid-range phone, not only your laptop.
It can be, if you respect reduced-motion settings, never hide essential actions behind a gesture, and keep text real (not baked into a canvas) so screen readers can read it.
Start with springs in Figma or SwiftUI. Move to Matter.js for 2D playful moments and Rapier with three.js for 3D, once you have a moment that really needs bodies and collisions.
I design interaction, motion and sound, and I ship the code for them. If you have a moment in your product that should feel like something, work with me as your product designer, or browse my product design work first.
If you have a web or mobile app idea in mind or you need some advice about product design, feel free to get in touch ✉️