~/siddharthsiddharth_meena
PortfolioAboutComponents
Back to Components

Scramble Text

An animated text component that creates a hacker-style character scrambling effect on hover, revealing text with a smooth decoding animation.

Preview

hover-over-me

Installation

Install the component using the CLI.

npx shadcn@latest add https://siddz.com/r/scramble-text.json

Usage

Import the component:

import { ScrambleText } from "@/components/scramble-text"

Use it in your code:

<ScrambleText text="Hello World" />

Props

PropertyTypeDefaultDescription
text*string-The text content to display and animate.
speednumber30Animation speed in milliseconds. Lower values = faster animation.
charsstringall printable charactersCharacter set used for the scramble effect.
classNamestring""Additional CSS classes to apply to the component.

© 2025 Siddharth Meena.

PortfolioAboutComponents
X (Twitter)
Email
GitHub