# CSS ease-in-out: cubic-bezier and linear() easing

> ease-in-out as CSS: cubic-bezier(0.42, 0, 0.58, 1), the exact 41-point linear() string, and a live demo to copy. It is 50% done at 50% of the time.

Canonical: https://vawe.dev/easing/ease-in-out
Last updated: 2026-11-04

ease-in-out reaches 50% of its travel at 50% of the time and 90% at 78%. Its peak speed is 1.72x the average.

Slow at both ends, fast in the middle.

| Measure | Value |
| --- | --- |
| Role | Move |
| Reaches 50% of its travel at | 50% |
| Reaches 90% of its travel at | 78% |
| Peak speed | 1.72x the average |

## CSS cubic-bezier

```css
cubic-bezier(0.42, 0, 0.58, 1)
```

## Web Animations

```js
el.animate({ translate: ['0 0', '240px 0'] }, { duration: 600, easing: 'cubic-bezier(0.42, 0, 0.58, 1)', fill: 'both' });
```

## In a vawe page

```js
animation: slide 600ms ease-in-out;
```

## Use for

- Moves between two resting positions: a slide, a camera push, a toggle.
- Looping back-and-forth motion.

## Avoid for

- Quick UI feedback: the slow start delays the response.
- Film entrances. Land gives a clearer arrival.

## Related

- [glide](https://vawe.dev/easing/glide)
- [easeInOutQuad](https://vawe.dev/easing/ease-in-out-quad)
- [easeInOutSine](https://vawe.dev/easing/ease-in-out-sine)
- [settle](https://vawe.dev/easing/settle)
- [easeInOutCubic](https://vawe.dev/easing/ease-in-out-cubic)
- [easeInOutBounce](https://vawe.dev/easing/ease-in-out-bounce)
- [All easing functions](https://vawe.dev/easing)
