uibrik

Anagram Shuffle

Preview

Customize

Duration0.45s
Text size48px

Usage

import { AnagramShuffle } from "@/components/uibrik/anagram-shuffle/anagram-shuffle";

<AnagramShuffle play={play} />

Installation

npx shadcn@latest add https://uibrik.com/r/anagram-shuffle.json
Adds the files to components/uibrik/anagram-shuffle and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/anagram-shuffle.

Props

AnagramShuffle
words
Type string[]
["LISTEN","SILENT","ENLIST","TINSEL"]
Anagrams of each other, cycled one per play.
duration
Type number
0.45
Time for letters to glide to their new slots.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.