Car in, wheel gun, out — a looping F1 story for any slow network or heavy job. f1BoxBox mounts with start() / complete() / reset().
Open a full-viewport run with Start, Complete, and Reset, and tweak scale, colors, status text, and textInterval the same way you would in code.
npm install f1-box-box
yarn add f1-box-box
pnpm add f1-box-box
| Method / option | Type | Description |
|---|---|---|
| f1BoxBox(container, options?) | — | Returns { start, complete, reset, destroy } |
| start() | void | Car enters pit, crew starts working |
| complete() | void | Green light, crew steps back, car exits |
| reset() | void | Back to idle |
| scale | number | Visual scale multiplier (default 1) |
| color | string | Car accent (default team red) |
| baseColor | string | Car chassis & mechanics' gear base color (default #1a1a1a) |
| text | string | string[] | Status line. String = idle / reset only. Array = first + start, middle cycle during pit work, last on complete() |
| textInterval | number | Ms between middle messages in array mode (default 2000) |