uibrik

Scramble to Word

Preview

Customize

Cells8
Tick40ms
Lead6
Step2
Text size48px

Usage

import { ScrambleToWord } from "@/components/uibrik/scramble-to-word/scramble-to-word";

<ScrambleToWord play={play} />

Installation

npx shadcn@latest add https://uibrik.com/r/scramble-to-word.json
Adds the files to components/uibrik/scramble-to-word. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/scramble-to-word.

Props

ScrambleToWord
words
Type string[]
["BOARDING","GATE 21","ON TIME","DEPARTED"]
Cycled through, one per play.
cells
Type number
8
Number of cells on the board.
tick
Type number
40
Time between scramble frames.
lead
Type number
6
Frames of noise before the first cell locks.
step
Type number
2
Frames between cells locking.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.