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

Terminal
npx airflib@latest add word-reel

Usage

TSX
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.

NameTypeDefaultDescription
direction"down" | "up""down"Which way the words travel.
spinMsnumber1400msSpins 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.

Used in