Word reel
One big word on a drum: tap it and it spins, each tap turns it faster, then it slows down and lands on a word.
Install
npx airflib@latest add word-reel
Usage
import { WordReel } from "@/components/airflib/components/word-reel";
<WordReel
direction="down"
spinMs={1400}
/>
API
Its main settings, read from the code: each prop's type and default. The prompt lists every prop.
| Name | Type | Default | Description |
|---|---|---|---|
direction | "down" | "up" | "down" | Which way the words travel. |
spinMs | number | 1400ms | Spins this long after the last press, then lands in 1.8 s, however many words there are. From 400 to 3000ms. |
Sound
The sounds in the catalog are the site's. The block comes silent, with a place for your own.