# span

function in `@dioramajs/text/counter`

```ts
import { span } from '@dioramajs/text/counter'
```

Seconds from the trigger until the number has landed and folded back into the text.

```ts
function span(
  p: { readonly delay: number; readonly duration: number; readonly stagger: number },
  style: Style,
  digits: number,
): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `p` | `{ readonly delay: number; readonly duration: number; readonly stagger: number }` |  |
| `style` | `Style` |  |
| `digits` | `number` |  |

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