Components
Text that cycles through random characters on hover before settling back into the real word, with configurable speed and duration. Respects prefers-reduced-motion.

"use client";
import Component from "@/components/ui/scramble-hover";
export default function DemoOne() {
return (
<div className="flex min-h-[440px] w-full items-center justify-center bg-background p-10">
<div className="w-full max-w-lg rounded-2xl border bg-card p-10 shadow-sm">
<p className="font-semibold text-foreground text-sm">Scramble Hover</p>
<p className="mt-1 text-muted-foreground text-xs">
Hover a line — the letters cycle through noise before settling.
</p>
<ul className="mt-8 space-y-3 font-mono text-2xl text-foreground">
<li>
<Component>DESIGN</Component>
</li>
<li>
<Component duration={900} speed={40}>
ENGINEERING
</Component>
</li>
<li>
<Component duration={400}>MOTION</Component>
</li>
</ul>
</div>
</div>
);
}