A hover-triggered text effect that scrambles and restores its characters with smooth GSAP motion.
import { ScrambleText } from "@/components/ui/scramble-text"; export default function Demo() { return ( <div className="flex min-h-[300px] w-full items-center justify-center bg-background px-6 text-foreground"> <ScrambleText className="font-mono text-lg font-medium sm:text-xl xl:text-3xl"> <p>Hover to scramble what you see</p> </ScrambleText> </div> ); }