# place

function in `@dioramajs/text/tunnel`

```ts
import { place } from '@dioramajs/text/tunnel'
```

Phrase `i` with the camera at `t`: in focus (t = i) it lies flat where the DOM has it; further
back it moves onto the floor or ceiling of the tunnel or the helix, leaning towards the axis, and
fades into the fog; nearer it grows, blurs and fades out before it reaches the eye. Given the
phrase in focus (`focus`, the one at round(t)), a phrase behind that would cross it on screen
fades out while that one holds. Undefined when unseen.

```ts
function place(
  i: number,
  t: number,
  rest: Rest,
  s: Scene,
  focus?: Rest,
): Placed | undefined
```

| Parameter | Type | Description |
| --- | --- | --- |
| `i` | `number` |  |
| `t` | `number` |  |
| `rest` | `Rest` |  |
| `s` | `Scene` |  |
| `focus?` | `Rest` |  |

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