# travel

function in `@dioramajs/text/keycaps`

```ts
import { travel } from '@dioramajs/text/keycaps'
```

Steps a key toward `target` for `dt` seconds: a stiff spring that bottoms out hard at 1, the
stem's top stopping a bounce back a little past rest. True when it hit the bottom moving.

```ts
function travel(
  state: Spring,
  target: number,
  stiffness: number,
  dt: number,
): boolean
```

| Parameter | Type | Description |
| --- | --- | --- |
| `state` | `Spring` |  |
| `target` | `number` |  |
| `stiffness` | `number` |  |
| `dt` | `number` |  |

Defined in [packages/text/src/keycaps.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/text/src/keycaps.ts#L611).
