Easing Functions for Game Developers: Which One to Use When
What easing functions are, how ease in, ease out and ease in-out feel, and which easing curves work best for UI, cameras, pickups and game feel.
In this article
Move a UI panel from A to B at a constant speed and it looks robotic. Make it start fast and slow down at the end, and suddenly it feels polished. That difference is an easing function, and choosing the right one is one of the cheapest ways to improve game feel.
What an easing function does
An animation has a progress value t that goes from 0 at the start to 1 at the end. Without easing, the object moves the same distance every frame (linear). An easing function reshapes that progress:
eased = Ease(t) // t from 0 to 1 position = Lerp(start, end, eased)
The object still starts at A and ends at B at the same time, but its speed changes along the way.
The three families
| Family | Speed | Feels like | Use for |
|---|---|---|---|
| Ease out | Fast → slow | Arrives softly | Things entering the screen, UI appearing |
| Ease in | Slow → fast | Accelerates away | Things leaving the screen |
| Ease in-out | Slow → fast → slow | Natural movement | Moving between two on-screen places, cameras |
A simple rule: ease out when appearing, ease in when leaving, ease in-out when moving across.
The curve shapes
Each family comes in several strengths, named after the maths behind them:
- Sine: very gentle.
- Quad, Cubic, Quart, Quint: progressively stronger acceleration.
- Expo: very sharp.
- Circ: quick, then a long tail.
- Back: goes slightly past the target and comes back (overshoot).
- Elastic: springs back and forth like a rubber band.
- Bounce: bounces at the end like a dropped ball.
Which easing for which job
| Situation | Try |
|---|---|
| UI panels sliding in | easeOutCubic, easeOutQuart |
| Buttons and pop-ups | easeOutBack (a little overshoot feels alive) |
| Camera moves | easeInOutSine, easeInOutCubic |
| Coins and pickups landing | easeOutBounce |
| Springy, cartoon motion | easeOutElastic |
| Fading audio or lights | easeInOutQuad, easeOutExpo |
Rules of thumb
- Keep UI animations short: 150–400 ms. Players see menus hundreds of times.
- Be consistent. Use one or two easings across your UI so it feels like one product.
- Use overshoot sparingly. easeOutBack on everything becomes tiring.
- Do not ease gameplay input. Character movement that responds to the stick should feel immediate; easing belongs to transitions, cameras and feedback.
Seeing is understanding
Easing names are hard to imagine from text. The free Easing Functions & Curves tool shows 31 easings side by side with live previews and curves, so you can compare easeOutCubic and easeOutQuart in a second. It also gives ready-to-use code for Unity C#, Unreal C++ and JavaScript, using the standard Robert Penner formulas, so names match most tweening libraries.
Built-in options in the engines
- Unity:
AnimationCurvefields let you draw curves in the Inspector; tween libraries such as DOTween use the same easing names. - Unreal Engine: Blueprints have an Ease node, and Timelines with curve assets let you draw any curve.
Summary
- Easing reshapes progress from 0 to 1 before you lerp.
- Ease out to appear, ease in to leave, ease in-out to move across.
- easeOutCubic for UI, easeOutBack for buttons, easeInOutSine for cameras.
- Keep UI animations at 150–400 ms and stay consistent.
Frequently asked questions
What is an easing function?
A function that takes linear progress from 0 to 1 and returns an eased progress value. Feeding that value into a lerp makes motion speed up or slow down instead of moving at a constant speed.
What is the difference between ease in and ease out?
Ease in starts slowly and speeds up, so motion ends abruptly. Ease out starts fast and slows down, so it lands softly. Ease in-out does both.
Which easing is best for UI animations?
Ease out curves such as easeOutCubic or easeOutQuart feel responsive and smooth. Use easeOutBack for a small, friendly overshoot on buttons and pop-ups.
How long should UI animations be?
Usually 150 to 400 milliseconds. Shorter feels snappy, longer starts to feel sluggish, especially for things players see many times.