Physics in UI: Why I Give Interfaces Weight, and When I Don't

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.

Written by
Ayoub Kada
Published on
December 3, 2026
Read time
6 min
Category

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.

What physics in UI actually means

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.

Why I put physics in UI: three builds, three reasons

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.

Weight makes a number believable: the gummy bear scale

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.

Resistance makes a serious action feel serious: the frozen card

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.

Play makes a brand memorable: throwable letters

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.

Where physics in UI hurts

This is the part most physics demos skip. I would not use simulation, and sometimes not even springs, in these places:

  • Dense, repeated work. A table someone edits 200 times a day should be instant. Every bounce is a tax.
  • Data people need to trust. At ViewStats, creators wanted clarity, not more motion. I wrote about that in dashboard UX best practices. A chart that wobbles reads as unstable.
  • Anything where position matters exactly. If a dragged item can land a few pixels off because of momentum, you have a bug, not a feeling.
  • Users who asked for less motion. Respect prefers-reduced-motion. Physics should degrade to simple state changes, and the product must still work.

The common thread: physics is good at showing consequence and inviting play. It is bad at speed and precision.

Physics in UI compared: easing, springs and simulation

Easing curveSpringFull simulation
What you setDuration and curveStiffness, damping, massBodies, gravity, friction, collisions
Responds to user velocityNoYesYes
Best forFades, simple revealsSheets, cards, buttons, dragsConfigurators, playful brand moments, games
Cost to buildLowLow to mediumMedium to high
RiskFeels mechanicalToo bouncy if tuned badlyPerformance, unpredictability, accessibility
Example from my buildsText reveals on scrollCard and sheet motion in PaynoHaribo bears, Socialme letters

A simple test: should this UI have physics?

Before adding physics, I ask three questions. If the answer to all three is no, the screen should stay still.

  1. Does the user cause a change they need to feel? Freezing a card, adding to a cart, deleting something. Physics can show the size of the consequence.
  2. Is there a real-world object the user already understands? A bag, a card, a letter, a drawer. If the metaphor is physical, physics makes it honest.
  3. Is this a moment people will do once or rarely? First-run, a reward, a brand page. Rare moments can afford weight. Daily tools usually cannot.

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.

How AI changed who can build physics into a product

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.

FAQ about physics in UI

What is physics based animation in UI?

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.

Do physics animations hurt performance?

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.

Is physics in UI accessible?

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.

Which tool should a designer start with?

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.

Want a product that feels alive, not busy?

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 ✉️