Black Friday: 30% off Pro

Get 30% off

Anagram Shuffle

Preview

LISTEN

Customize

Duration0.45s
Text size48px

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.

Usage

import { AnagramShuffle } from "@/components/uibrik/anagram-shuffle/anagram-shuffle";​<AnagramShuffle  play={0}  words={["LISTEN", "SILENT", "ENLIST", "TINSEL"]}  duration={0.45}/>

Where to use Anagram Shuffle

  • Rotating hero headlines

    Letters rearrange into the next phrase in place, so a headline can cycle through benefits without a jump in layout.

    Pairs with Rolling Word

  • Personal portfolios

    Shuffling a name into a role, or one title into another, makes a short intro memorable with nothing but type.

  • Word and puzzle games

    Letters physically moving between words suits splash screens and level transitions for word games.

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.