# Ease-In-Out

> Easing that is slow at both ends and fast in the middle. It suits moves within the screen.

**Field:** Design  
**Category:** Motion & Video  
**Also known as:** Ease In Out, Ease-In-Out Curve, S-Curve Easing

## Think of it like

It is like a lift between floors. It starts gently, goes fast, then stops gently.

## Definition

Ease-in-out is easing that starts slow, speeds up in the middle and slows again at the end. Its curve is shaped like the letter S. It suits things that move from one spot to another while staying on screen. It is the software form of slow in and slow out. In CSS it is the keyword ease-in-out.

## Example

A photo moves from a grid to full screen. It eases out of its spot, speeds up, and eases into place.

## Example code

```css
.photo {
  transition: transform 400ms ease-in-out;
  /* same as cubic-bezier(0.42, 0, 0.58, 1) */
}
```

The photo moves slow, then fast, then slow again.

## Why it matters

For a thing that starts and ends on screen, it is the move that looks most like the real world.

## Common mistake

Using it for everything. On entrances it feels slow to start, because nothing happens at first.

## Three principles

- **Slow, fast, slow.** An S-shaped curve.
- **For moves on screen.** From one spot to another.
- **Not for every case.** Entrances want ease-out.

## Related terms

- [Easing](https://learn.benibix.com/term/design/easing)
- [Ease-In](https://learn.benibix.com/term/design/ease-in)
- [Ease-Out](https://learn.benibix.com/term/design/ease-out)
- [Slow In and Slow Out](https://learn.benibix.com/term/design/slow-in-and-slow-out)

![Four small graphs of progress over time. Linear is a straight diagonal line. Ease-in starts flat and ends steep. Ease-out starts steep and ends flat. Ease-in-out is an S-shape, flat at both ends. Under each, a row of dots shows the spacing of the frames.](https://learn.benibix.com/diagrams/easing-curves.svg)

---

Source: https://learn.benibix.com/term/design/ease-in-out
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
