Text Scramble

Motion

A text effect that scrambles random glyphs and resolves to the final string letter by letter when it scrolls into view. Its aria-label keeps the real text.

src/registry/premium/text-scramble.tsx/r/text-scramble.json

PREMIUM MOTION

Scramble

Installation#

bash
npx shadcn@latest add @minidev/text-scramble

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/text-scramble.json

Usage#

tsx
import { TextScramble } from "@/components/ui/text-scramble"

export function Example() {
  return (
    <TextScramble />
  )
}

API reference#

TextScramble props
PropTypeDefault
textstring"PREMIUM MOTION"
classNamestring-

Dependencies#

npm

motion

Built from

No other MiniDev files

Examples#

All Animated React components