---
title: "easeInOut"
description: "A 0..1 value that starts slow, speeds up, and slows again at the end."
group: "space"
groupTitle: "Shapes, frames & warps"
categoryId: "motion"
categorySlug: "motion"
categoryTitle: "Motion & timing"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/motion.ts#L168"
---

# easeInOut

A 0..1 value that starts slow, speeds up, and slows again at the end.

```ts
easeInOut(x: Expr): Expr
```

Import `motion` from `shaders/std` and use `motion.easeInOut`.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `x` | `Expr` |  |

## Example

```ts
const glide = motion.easeInOut(progress)
```

## See also

- [`easeIn`](/docs/primitives/motion/easein) — A 0..1 value that starts slow and speeds up.
- [`easeOut`](/docs/primitives/motion/easeout) — A 0..1 value that starts fast and slows to a stop.