← /browse

Making Games / 4 min /

Why do menus and movements feel smooth? Easing and tweening explained

Press a button in a game menu and the panel slides in, slows down and settles. That feel comes from easing: changing the speed of a movement without changing where it starts, where it ends or how long it takes.

Drag the handles on a live curve, press Play and watch a ball and a menu panel follow it. You will learn what ease-in, ease-out and overshoot mean, where games use them, and how to pick a curve and a duration for your own first game.

A smooth S-shaped easing curve with two draggable handles

Press a button in a game menu and the panel doesn't just appear. It slides in, slows down at the end and settles. Pick up a coin and it pops upward before it vanishes. None of that is magic and none of it needs an artist. It is one small idea called easing, and once you see it you will notice it in almost every game you play.

Moving from A to B

Say you want a menu panel to move from the left edge of the screen to its final spot. The simplest way is to pick a duration, like a third of a second, and move it the same distance every frame. Game makers call this linear movement, and a built-in helper called lerp (short for linear interpolation) does the maths: position = start + (end - start) × t. Here t is the progress, running from 0 (just started) to 1 (arrived).

Linear movement is correct, and it feels wrong. Real objects don't start at full speed and stop dead. A car speeds up, a dropped ball gathers speed, a door slows as it closes. Linear motion looks mechanical, like a cheap slideshow.

Easing: changing the speed, not the route

Easing changes how t is used. Instead of feeding the clock straight into the movement, you bend it through a curve first. The panel still goes from A to B in the same time. Only the speed along the way changes.

A few names you will meet in every engine:

Ease-in starts slowly and speeds up. It suits things leaving the screen, because they seem to build momentum. Ease-out starts fast and slows down at the end. It suits things arriving, such as a menu opening or a health bar refilling, because they land gently. Ease-in-out does both and feels like a natural, smooth glide. Some curves add a little overshoot: the object goes slightly past its target and settles back, which reads as springy and playful.

Try it: bend the curve yourself

The graph below is the whole secret. Left to right is time, bottom to top is how far the object has travelled. A straight diagonal is linear. Drag the two coral handles to reshape the curve, or tap a preset, then press Play and watch both the ball and the menu panel follow it.

Try the Overshoot preset and look at the graph: the curve climbs above the "arrived" line and comes back. Now drag a handle so the curve is almost flat at the start. The panel hangs around for a moment and then rushes in, which feels sluggish. Drag it the other way and it snaps in, then eases to a stop, which feels responsive.

Where games use easing

Menus and pop-ups are the obvious case. Beyond those, easing is behind many small details: a health bar that drains smoothly rather than jumping, a number that counts up when you finish a level, a coin that arcs towards the score counter, a door that swings open, a camera that settles on a new target, a button that grows a little when you hover over it. Game makers call this tweening, from "in-betweening". You give an object a start, an end and a duration, and the engine fills in the frames between.

You rarely write the curves yourself. Engines such as Godot and Unity include tween tools and ready-made curves, and web-style tools use the same cubic-bezier numbers shown under the graph above.

Picking a curve and a time

A good rule of thumb: things that arrive should ease out, things that leave should ease in, and things that move across the whole screen can ease in and out. Keep it quick. Interface animations usually feel best somewhere between about a tenth and four tenths of a second. Slower than that and players start waiting for the menu instead of using it. Use overshoot sparingly, for moments that should feel playful, such as a reward popping up.

Easing should also never get in the way. If a player taps a button, react at once, and let the animation catch up rather than making them wait for it to finish.

What to look for

When you start making your own game, look for these in your engine:

A tween or animation tool. Godot has Tweens, Unity has animation curves and add-on tween libraries, and many engines offer something similar. Named easing presets. You can start with "ease out" and adjust later. A way to edit the curve visually. Dragging handles, as in the demo above, beats guessing numbers. A short default duration. Start fast and slow down only if it feels rushed.

More in Making Games

all Making Games →