dsphoebe

Text Scramble

Component

About

A headline that scrambles, then settles into the real sentence when it scrolls into view.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Text Scramble to your project and fits it to your theme.

Code

How Text Scramble is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

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

export default function Default() {
  return (
    <div className="flex min-h-80 items-center justify-center bg-background p-10">
      <TextScramble as="h1" size="lg" className="text-center">
        The line settles when you arrive.
      </TextScramble>
    </div>
  )
}

Dependencies

More by dsphoebe

View all
  • Infinite Logo Marquee

    Infinite Logo Marquee

  • Spotlight Hover Card

    Spotlight Hover Card

  • Magnetic Button

    Magnetic Button